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
- BaseServiceProvider.cs
- FrameworkRichTextComposition.cs
- ListSortDescriptionCollection.cs
- WebPartsPersonalization.cs
- HtmlToClrEventProxy.cs
- TextAnchor.cs
- RpcAsyncResult.cs
- ExpressionCopier.cs
- CollectionViewGroup.cs
- RawContentTypeMapper.cs
- RegistryDataKey.cs
- CodeExpressionStatement.cs
- NextPreviousPagerField.cs
- Effect.cs
- AutomationPropertyInfo.cs
- InheritanceContextHelper.cs
- EDesignUtil.cs
- RegionData.cs
- securitymgrsite.cs
- Transform3D.cs
- DesignerSerializerAttribute.cs
- SqlProcedureAttribute.cs
- documentation.cs
- TextBoxAutoCompleteSourceConverter.cs
- WebServiceResponseDesigner.cs
- GlyphTypeface.cs
- SymbolPair.cs
- ReliabilityContractAttribute.cs
- GlyphShapingProperties.cs
- ProfilePropertySettingsCollection.cs
- ToolStripItemCollection.cs
- XmlAggregates.cs
- DataColumn.cs
- FileCodeGroup.cs
- WhitespaceRuleLookup.cs
- GridViewCellAutomationPeer.cs
- ResourceProperty.cs
- Nodes.cs
- FamilyTypeface.cs
- ImageCodecInfoPrivate.cs
- DesignerOptionService.cs
- HttpProfileGroupBase.cs
- XmlSchemaCompilationSettings.cs
- safex509handles.cs
- MarkupCompilePass1.cs
- RegisteredExpandoAttribute.cs
- PixelShader.cs
- TextDpi.cs
- QueueSurrogate.cs
- DesignerView.cs
- SimpleLine.cs
- OraclePermissionAttribute.cs
- Vector3DAnimation.cs
- CaseInsensitiveOrdinalStringComparer.cs
- LineSegment.cs
- XamlSerializerUtil.cs
- XmlSerializerNamespaces.cs
- ColorKeyFrameCollection.cs
- FixUp.cs
- InvalidFilterCriteriaException.cs
- ServerTooBusyException.cs
- WebPartUserCapability.cs
- TypeNameHelper.cs
- ActivationServices.cs
- ChangeNode.cs
- SelectedGridItemChangedEvent.cs
- AssemblyBuilderData.cs
- MergablePropertyAttribute.cs
- CryptoProvider.cs
- ChannelBuilder.cs
- Visual3DCollection.cs
- Expr.cs
- TypeElementCollection.cs
- CompositeControlDesigner.cs
- FreeFormDragDropManager.cs
- TextEditorParagraphs.cs
- TextContainerHelper.cs
- UIServiceHelper.cs
- SystemDiagnosticsSection.cs
- OdbcParameter.cs
- DataGridViewDataConnection.cs
- Calendar.cs
- SerialPort.cs
- TreeNodeStyleCollectionEditor.cs
- ColorMatrix.cs
- ProfileService.cs
- Assembly.cs
- DataGridHyperlinkColumn.cs
- AggregateNode.cs
- RijndaelManaged.cs
- BinaryObjectInfo.cs
- PingReply.cs
- DesignConnection.cs
- IOException.cs
- ConditionCollection.cs
- WindowsFont.cs
- _AutoWebProxyScriptHelper.cs
- MonitorWrapper.cs
- ExtenderProvidedPropertyAttribute.cs
- ZipIOCentralDirectoryDigitalSignature.cs