Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- KeySplineConverter.cs
- CodeCompiler.cs
- DataError.cs
- WebPageTraceListener.cs
- SmiSettersStream.cs
- SqlWebEventProvider.cs
- Globals.cs
- NamespaceCollection.cs
- MemberDescriptor.cs
- RestHandlerFactory.cs
- ReliableDuplexSessionChannel.cs
- xmlsaver.cs
- ClientRuntimeConfig.cs
- TableLayoutPanelCellPosition.cs
- WindowsSlider.cs
- TextElementEnumerator.cs
- ZipIOExtraFieldElement.cs
- BufferAllocator.cs
- Vars.cs
- StaticSiteMapProvider.cs
- SchemaType.cs
- EpmSyndicationContentSerializer.cs
- GlyphElement.cs
- DbDeleteCommandTree.cs
- Timer.cs
- TimeZoneInfo.cs
- ErrorProvider.cs
- ClientTarget.cs
- LabelAutomationPeer.cs
- XPathNavigatorKeyComparer.cs
- MailWebEventProvider.cs
- ResXBuildProvider.cs
- SerializationAttributes.cs
- ReferenceConverter.cs
- ValidatedControlConverter.cs
- Pkcs9Attribute.cs
- ObjectDataSourceSelectingEventArgs.cs
- DelegateArgumentValue.cs
- XmlChildNodes.cs
- ScalarConstant.cs
- EventMappingSettings.cs
- StateChangeEvent.cs
- Brush.cs
- Token.cs
- ListView.cs
- LinearKeyFrames.cs
- ObjectCloneHelper.cs
- ExtensionSimplifierMarkupObject.cs
- SafeNativeMethods.cs
- DependencyPropertyConverter.cs
- TabControlCancelEvent.cs
- SlotInfo.cs
- UIElement3DAutomationPeer.cs
- TreeChangeInfo.cs
- WebServiceData.cs
- ZoomPercentageConverter.cs
- FontSizeConverter.cs
- SQlBooleanStorage.cs
- IsolatedStorage.cs
- CultureMapper.cs
- XPathAxisIterator.cs
- ResourceDictionaryCollection.cs
- OpenFileDialog.cs
- ServicePointManagerElement.cs
- HttpCookieCollection.cs
- LicenseException.cs
- UdpSocket.cs
- XmlSchemaAnnotated.cs
- MatrixAnimationUsingKeyFrames.cs
- StructuredProperty.cs
- cryptoapiTransform.cs
- ListBindableAttribute.cs
- WSFederationHttpBindingCollectionElement.cs
- MonitorWrapper.cs
- EditCommandColumn.cs
- ElementsClipboardData.cs
- BamlLocalizationDictionary.cs
- BinaryMessageEncodingBindingElement.cs
- DrawingDrawingContext.cs
- FontCollection.cs
- SystemKeyConverter.cs
- EntityDataSourceContainerNameItem.cs
- Graphics.cs
- XmlValueConverter.cs
- XamlWriterExtensions.cs
- SvcMapFileLoader.cs
- SqlStream.cs
- EntityTypeEmitter.cs
- AttributeUsageAttribute.cs
- HttpProfileGroupBase.cs
- ZipIOLocalFileBlock.cs
- _SafeNetHandles.cs
- DataSourceControlBuilder.cs
- VarRefManager.cs
- TranslateTransform.cs
- ScalarType.cs
- cookiecontainer.cs
- ReaderWriterLock.cs
- MasterPageBuildProvider.cs
- SecurityContext.cs