Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PersonalizationStateInfo.cs
- LineGeometry.cs
- CodeObjectCreateExpression.cs
- CharConverter.cs
- SqlRowUpdatedEvent.cs
- DataSetViewSchema.cs
- OleDbFactory.cs
- OlePropertyStructs.cs
- UnsafeNativeMethods.cs
- QilBinary.cs
- HuffModule.cs
- BaseResourcesBuildProvider.cs
- VarInfo.cs
- DataPagerCommandEventArgs.cs
- webbrowsersite.cs
- PropertyDescriptorComparer.cs
- FormViewUpdatedEventArgs.cs
- GridViewUpdatedEventArgs.cs
- DefaultObjectMappingItemCollection.cs
- ViewStateModeByIdAttribute.cs
- SignatureTargetIdManager.cs
- OverflowException.cs
- TypeNameHelper.cs
- Expression.DebuggerProxy.cs
- LoadedEvent.cs
- MetadataItemCollectionFactory.cs
- CompareInfo.cs
- Point3D.cs
- MissingManifestResourceException.cs
- ImageAttributes.cs
- CreateUserErrorEventArgs.cs
- PLINQETWProvider.cs
- WinEventTracker.cs
- util.cs
- OneOfScalarConst.cs
- DetailsViewRow.cs
- DataSourceXmlSubItemAttribute.cs
- ToolZone.cs
- ScalarConstant.cs
- IDispatchConstantAttribute.cs
- StandardCommands.cs
- DataServiceQueryProvider.cs
- MenuCommandService.cs
- HelpInfo.cs
- WindowProviderWrapper.cs
- SecurityContextCookieSerializer.cs
- NativeMethods.cs
- SchemaImporter.cs
- ETagAttribute.cs
- DataGridPageChangedEventArgs.cs
- LongTypeConverter.cs
- CodeArrayIndexerExpression.cs
- GenericEnumerator.cs
- DataList.cs
- TrustLevelCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- ExeContext.cs
- HyperLink.cs
- SelectionListDesigner.cs
- DockingAttribute.cs
- NavigationPropertyAccessor.cs
- MsdtcWrapper.cs
- SoundPlayerAction.cs
- ReachVisualSerializerAsync.cs
- HandlerBase.cs
- ProfileInfo.cs
- WebPartConnectionsCancelVerb.cs
- BooleanFacetDescriptionElement.cs
- ConnectionAcceptor.cs
- ButtonBase.cs
- State.cs
- TableSectionStyle.cs
- HttpCookieCollection.cs
- CodeDirectiveCollection.cs
- __Error.cs
- SynchronizingStream.cs
- _LocalDataStore.cs
- SubstitutionDesigner.cs
- XamlSerializer.cs
- ProfilePropertyMetadata.cs
- PageParser.cs
- HTTPRemotingHandler.cs
- MessageParameterAttribute.cs
- XmlSchemaComplexContent.cs
- LongPath.cs
- PartitionedStream.cs
- CodeIterationStatement.cs
- PersonalizationProvider.cs
- DependencyObjectCodeDomSerializer.cs
- KeyGestureConverter.cs
- OperationCanceledException.cs
- CellParaClient.cs
- UserControlParser.cs
- ConfigurationCollectionAttribute.cs
- TCPClient.cs
- MatrixAnimationUsingKeyFrames.cs
- CompiledRegexRunnerFactory.cs
- DataServiceRequestException.cs
- SqlNamer.cs
- DBConcurrencyException.cs