Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / ComponentModel / COM2Interop / Int32CAMarshaler.cs / 1 / Int32CAMarshaler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.ComponentModel.Com2Interop { using System.Runtime.InteropServices; using System.ComponentModel; using System.Diagnostics; using System; ////// /// This class performs marshaling on a CADWORD struct given /// from native code. /// internal class Int32CAMarshaler : BaseCAMarshaler { public Int32CAMarshaler(NativeMethods.CA_STRUCT caStruct) : base(caStruct) { } ////// /// Returns the type of item this marshaler will /// return in the items array. In this case, the type is int. /// public override Type ItemType { get { return typeof(int); } } protected override Array CreateArray() { return new int[Count]; } ////// /// Override this member to perform marshalling of a single item /// given it's native address. /// protected override object GetItemFromAddress(IntPtr addr) { return addr.ToInt32(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.ComponentModel.Com2Interop { using System.Runtime.InteropServices; using System.ComponentModel; using System.Diagnostics; using System; ////// /// This class performs marshaling on a CADWORD struct given /// from native code. /// internal class Int32CAMarshaler : BaseCAMarshaler { public Int32CAMarshaler(NativeMethods.CA_STRUCT caStruct) : base(caStruct) { } ////// /// Returns the type of item this marshaler will /// return in the items array. In this case, the type is int. /// public override Type ItemType { get { return typeof(int); } } protected override Array CreateArray() { return new int[Count]; } ////// /// Override this member to perform marshalling of a single item /// given it's native address. /// protected override object GetItemFromAddress(IntPtr addr) { return addr.ToInt32(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlCharType.cs
- TreeNodeMouseHoverEvent.cs
- DataTableReader.cs
- TextPattern.cs
- ReadWriteObjectLock.cs
- uribuilder.cs
- HttpValueCollection.cs
- DataIdProcessor.cs
- LicFileLicenseProvider.cs
- XmlCharType.cs
- SqlUserDefinedAggregateAttribute.cs
- Geometry.cs
- OptimalTextSource.cs
- NetworkInformationException.cs
- FixedPageStructure.cs
- DNS.cs
- ListViewAutomationPeer.cs
- XmlHierarchicalDataSourceView.cs
- TextTreeUndo.cs
- SqlDataRecord.cs
- XmlUtil.cs
- dsa.cs
- HttpRequest.cs
- AxisAngleRotation3D.cs
- BaseUriHelper.cs
- TreeNodeStyle.cs
- CopyOfAction.cs
- DataRowChangeEvent.cs
- ReferenceConverter.cs
- MembershipValidatePasswordEventArgs.cs
- DataGridClipboardCellContent.cs
- MissingMemberException.cs
- ReflectEventDescriptor.cs
- DoubleStorage.cs
- WebResponse.cs
- XmlValueConverter.cs
- UriTemplateTable.cs
- _NtlmClient.cs
- FrameworkContentElement.cs
- ToolZoneDesigner.cs
- TreeNodeBindingDepthConverter.cs
- ControlCollection.cs
- HttpModuleActionCollection.cs
- ReferenceSchema.cs
- SplitContainer.cs
- DocobjHost.cs
- _IPv6Address.cs
- State.cs
- Focus.cs
- Graphics.cs
- StyleSheet.cs
- GridViewColumnHeader.cs
- DXD.cs
- Localizer.cs
- SqlProviderServices.cs
- DesignerVerb.cs
- MultipartContentParser.cs
- AlternateView.cs
- BmpBitmapDecoder.cs
- DataGridViewLinkCell.cs
- METAHEADER.cs
- TableCell.cs
- _IPv4Address.cs
- ObjectHandle.cs
- AppModelKnownContentFactory.cs
- Aggregates.cs
- CodeMethodInvokeExpression.cs
- UpdatePanel.cs
- BooleanStorage.cs
- ContainerUtilities.cs
- SimpleParser.cs
- DataObject.cs
- TextFindEngine.cs
- TimeSpanSecondsConverter.cs
- WebPartsPersonalization.cs
- MatrixCamera.cs
- ErrorFormatterPage.cs
- ManagedIStream.cs
- StringToken.cs
- webproxy.cs
- BaseDataList.cs
- StaticContext.cs
- ContextMenuStrip.cs
- prompt.cs
- GorillaCodec.cs
- ObjectViewListener.cs
- Point3DConverter.cs
- _AuthenticationState.cs
- ImmComposition.cs
- PackagePartCollection.cs
- initElementDictionary.cs
- OleDbCommand.cs
- TraceInternal.cs
- Int16Storage.cs
- Console.cs
- TraceSection.cs
- EmptyControlCollection.cs
- AutomationIdentifierGuids.cs
- UpdatePanelTrigger.cs
- PropertyEmitter.cs