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
- Fonts.cs
- XamlClipboardData.cs
- CellPartitioner.cs
- UrlMappingsModule.cs
- XPathSingletonIterator.cs
- FileChangeNotifier.cs
- QuaternionIndependentAnimationStorage.cs
- IndexOutOfRangeException.cs
- PnrpPermission.cs
- cookiecollection.cs
- TextTreeRootTextBlock.cs
- Literal.cs
- BaseAsyncResult.cs
- XmlSchemaNotation.cs
- ValidatorUtils.cs
- ServiceHostingEnvironment.cs
- FlowLayoutSettings.cs
- NetSectionGroup.cs
- UnmanagedMemoryStream.cs
- ExpressionBuilderCollection.cs
- XmlNodeComparer.cs
- Attribute.cs
- WSSecurityJan2004.cs
- HttpListenerException.cs
- AxisAngleRotation3D.cs
- CommonXSendMessage.cs
- ButtonFlatAdapter.cs
- NamespaceCollection.cs
- DrawingState.cs
- XmlSchemaNotation.cs
- ValueTypePropertyReference.cs
- SerializationException.cs
- EpmContentDeSerializerBase.cs
- ObjectItemAttributeAssemblyLoader.cs
- StylusEditingBehavior.cs
- CodeArrayIndexerExpression.cs
- PackWebRequest.cs
- ServiceDiscoveryElement.cs
- SafeNativeMethods.cs
- ParentControlDesigner.cs
- WindowsGraphicsWrapper.cs
- EntityDataSourceChangingEventArgs.cs
- Int16Animation.cs
- ByteStack.cs
- ScriptReferenceBase.cs
- ImageCreator.cs
- BamlResourceSerializer.cs
- ToolStripDropDownDesigner.cs
- MethodExpr.cs
- DecimalConverter.cs
- ClientOptions.cs
- TemplatePropertyEntry.cs
- ContentPosition.cs
- TextFormatterImp.cs
- OptimalTextSource.cs
- ContractSearchPattern.cs
- HttpProcessUtility.cs
- GACMembershipCondition.cs
- HtmlValidatorAdapter.cs
- PropertyDescriptorGridEntry.cs
- SystemInformation.cs
- ToolStripSplitStackLayout.cs
- WebDescriptionAttribute.cs
- ConnectionsZoneAutoFormat.cs
- input.cs
- MultipleViewPattern.cs
- BrowsableAttribute.cs
- SponsorHelper.cs
- RegexNode.cs
- Rect3D.cs
- SafeTimerHandle.cs
- QualifiedCellIdBoolean.cs
- FixedSOMFixedBlock.cs
- SchemaMapping.cs
- BufferModesCollection.cs
- DatagridviewDisplayedBandsData.cs
- Hash.cs
- X509Chain.cs
- InputReferenceExpression.cs
- ColumnReorderedEventArgs.cs
- SpoolingTask.cs
- XPathDocumentIterator.cs
- PathFigureCollectionValueSerializer.cs
- Pens.cs
- ContourSegment.cs
- WebPartCollection.cs
- ExtendedTransformFactory.cs
- WebEncodingValidator.cs
- EmissiveMaterial.cs
- NavigationPropertyEmitter.cs
- EntityDataSourceValidationException.cs
- PropertyRecord.cs
- FilteredXmlReader.cs
- CryptoKeySecurity.cs
- SHA1.cs
- ComponentEvent.cs
- GroupBox.cs
- LinqDataSourceStatusEventArgs.cs
- CharUnicodeInfo.cs
- TogglePattern.cs