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
- columnmapkeybuilder.cs
- Line.cs
- QilSortKey.cs
- login.cs
- CatalogPartCollection.cs
- WorkflowPersistenceService.cs
- SudsCommon.cs
- WinFormsComponentEditor.cs
- Geometry.cs
- NativeMethods.cs
- XmlRawWriterWrapper.cs
- UIElement3D.cs
- TransformerConfigurationWizardBase.cs
- Effect.cs
- XhtmlTextWriter.cs
- ColumnClickEvent.cs
- XmlNotation.cs
- BrowserTree.cs
- ThousandthOfEmRealPoints.cs
- PageEventArgs.cs
- ValidationEventArgs.cs
- CompilerLocalReference.cs
- CredentialManagerDialog.cs
- XmlLanguageConverter.cs
- StructuralObject.cs
- MemoryStream.cs
- LOSFormatter.cs
- CompoundFileDeflateTransform.cs
- BaseCodeDomTreeGenerator.cs
- SrgsGrammar.cs
- HybridDictionary.cs
- _DisconnectOverlappedAsyncResult.cs
- WhereaboutsReader.cs
- CellCreator.cs
- httpserverutility.cs
- MissingSatelliteAssemblyException.cs
- DirectoryNotFoundException.cs
- _SslSessionsCache.cs
- LinqToSqlWrapper.cs
- UpdatePanelTrigger.cs
- XamlPointCollectionSerializer.cs
- CodeAttachEventStatement.cs
- DataColumnPropertyDescriptor.cs
- TemplateBindingExpressionConverter.cs
- TimeSpanSecondsConverter.cs
- BinaryMessageEncodingBindingElement.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- DesignerDataStoredProcedure.cs
- CachingHintValidation.cs
- CriticalHandle.cs
- X509Chain.cs
- HGlobalSafeHandle.cs
- ScaleTransform3D.cs
- WebControl.cs
- DataErrorValidationRule.cs
- ErrorWebPart.cs
- BasePattern.cs
- ReverseInheritProperty.cs
- TrustLevelCollection.cs
- SystemColorTracker.cs
- EventManager.cs
- TreeNodeCollection.cs
- SmtpDigestAuthenticationModule.cs
- ToolStripContentPanelDesigner.cs
- DrawListViewSubItemEventArgs.cs
- XmlSerializerFactory.cs
- CopyNodeSetAction.cs
- InertiaExpansionBehavior.cs
- OleDbRowUpdatingEvent.cs
- AvTrace.cs
- DescendantOverDescendantQuery.cs
- DatagramAdapter.cs
- TiffBitmapEncoder.cs
- WebPartsPersonalization.cs
- AlphabeticalEnumConverter.cs
- securitymgrsite.cs
- UnmanagedMemoryStream.cs
- RemoteCryptoRsaServiceProvider.cs
- Timer.cs
- LayoutTable.cs
- ButtonStandardAdapter.cs
- ChildDocumentBlock.cs
- uribuilder.cs
- DrawingAttributes.cs
- OleDragDropHandler.cs
- WS2007FederationHttpBinding.cs
- SafeFileHandle.cs
- DataViewManagerListItemTypeDescriptor.cs
- TimeEnumHelper.cs
- DefaultCommandConverter.cs
- DesignerTransaction.cs
- UnknownBitmapDecoder.cs
- OrderablePartitioner.cs
- CacheRequest.cs
- SmtpClient.cs
- AlignmentYValidation.cs
- Command.cs
- TimelineCollection.cs
- DragStartedEventArgs.cs
- HtmlTableCellCollection.cs