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
- XmlSchemaObjectTable.cs
- ListenerAdapterBase.cs
- Brush.cs
- SourceLocation.cs
- login.cs
- StringPropertyBuilder.cs
- BaseCollection.cs
- Transform.cs
- CachedCompositeFamily.cs
- ScrollableControl.cs
- EntityContainerEntitySet.cs
- ClosableStream.cs
- DragEventArgs.cs
- recordstate.cs
- CodeSnippetStatement.cs
- SoapObjectInfo.cs
- RoleManagerSection.cs
- SqlRowUpdatingEvent.cs
- graph.cs
- safelink.cs
- ContextStaticAttribute.cs
- _IPv4Address.cs
- UrlSyndicationContent.cs
- DesignerAdRotatorAdapter.cs
- BindingMemberInfo.cs
- MergeExecutor.cs
- LocalValueEnumerator.cs
- FloaterParaClient.cs
- ClrPerspective.cs
- PermissionSet.cs
- ClientScriptManager.cs
- GridViewColumnHeader.cs
- ChameleonKey.cs
- EventRecordWrittenEventArgs.cs
- ContentDefinition.cs
- GuidelineSet.cs
- OutputCacheEntry.cs
- TypedTableBase.cs
- unsafenativemethodsother.cs
- EdmSchemaError.cs
- CorruptingExceptionCommon.cs
- BamlRecordReader.cs
- RootDesignerSerializerAttribute.cs
- DocumentApplicationJournalEntry.cs
- DispatcherTimer.cs
- PopOutPanel.cs
- EntityDesignPluralizationHandler.cs
- XmlSchemaInfo.cs
- DefaultEventAttribute.cs
- DesignerProperties.cs
- DrawTreeNodeEventArgs.cs
- SystemColorTracker.cs
- SemaphoreSecurity.cs
- EventMappingSettings.cs
- OdbcCommand.cs
- ToolStripComboBox.cs
- X509PeerCertificateAuthentication.cs
- HttpServerChannel.cs
- DoubleAnimationBase.cs
- FileFormatException.cs
- DataRecordInternal.cs
- StrongNamePublicKeyBlob.cs
- OutputCacheSection.cs
- DataTableReaderListener.cs
- Codec.cs
- TableLayoutSettings.cs
- CalendarDesigner.cs
- TdsParserHelperClasses.cs
- ExtentKey.cs
- HttpChannelBindingToken.cs
- ReaderWriterLock.cs
- EntityDataSourceWrapper.cs
- ServiceHostingEnvironment.cs
- DataBoundControl.cs
- ImageMap.cs
- ExitEventArgs.cs
- InfoCardAsymmetricCrypto.cs
- StateItem.cs
- Latin1Encoding.cs
- CommonObjectSecurity.cs
- XmlILConstructAnalyzer.cs
- DrawingContextWalker.cs
- NativeMethods.cs
- TransformedBitmap.cs
- StateWorkerRequest.cs
- DataRecordInfo.cs
- ConfigurationValidatorAttribute.cs
- IssuedTokenClientCredential.cs
- NamespaceCollection.cs
- CompositeFontInfo.cs
- EntityContainerAssociationSet.cs
- RuleCache.cs
- XamlSerializer.cs
- DesignerPerfEventProvider.cs
- HttpMethodAttribute.cs
- SendMailErrorEventArgs.cs
- StringToken.cs
- ServiceDescriptionSerializer.cs
- ResolvedKeyFrameEntry.cs
- ReflectionTypeLoadException.cs