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
- InkCollectionBehavior.cs
- StopStoryboard.cs
- XmlSchemaElement.cs
- StringHelper.cs
- Directory.cs
- C14NUtil.cs
- BitmapPalettes.cs
- ValidationRuleCollection.cs
- ConnectionStringsExpressionBuilder.cs
- ParentQuery.cs
- ExtentKey.cs
- ListViewInsertedEventArgs.cs
- Baml6ConstructorInfo.cs
- RenderOptions.cs
- TextServicesCompartmentContext.cs
- HotSpot.cs
- CapiSymmetricAlgorithm.cs
- DetailsViewRow.cs
- ContextProperty.cs
- APCustomTypeDescriptor.cs
- SrgsElementFactory.cs
- SizeLimitedCache.cs
- DataGridTablesFactory.cs
- OpenFileDialog.cs
- SqlLiftWhereClauses.cs
- XmlnsCompatibleWithAttribute.cs
- XmlSchemaAttribute.cs
- BrowserCapabilitiesCompiler.cs
- SHA384.cs
- HttpException.cs
- PassportAuthenticationEventArgs.cs
- InvokeBase.cs
- ListBoxItem.cs
- RefreshResponseInfo.cs
- ProviderCollection.cs
- SearchExpression.cs
- OracleBoolean.cs
- ReadOnlyMetadataCollection.cs
- PackUriHelper.cs
- PermissionSet.cs
- DataViewListener.cs
- DataContractAttribute.cs
- XmlNode.cs
- NetSectionGroup.cs
- exports.cs
- DataGridToolTip.cs
- PropertyOverridesTypeEditor.cs
- IERequestCache.cs
- odbcmetadatacolumnnames.cs
- UnhandledExceptionEventArgs.cs
- ContextInformation.cs
- ReadWriteObjectLock.cs
- WindowsGraphicsWrapper.cs
- RuntimeUtils.cs
- _NetworkingPerfCounters.cs
- LoginStatusDesigner.cs
- AutomationAttributeInfo.cs
- Evaluator.cs
- ConnectionManagementElementCollection.cs
- MarkupExtensionParser.cs
- SmtpReplyReaderFactory.cs
- columnmapfactory.cs
- ComplexPropertyEntry.cs
- PolicyStatement.cs
- HybridDictionary.cs
- WebServiceResponseDesigner.cs
- ProgressBar.cs
- ManipulationCompletedEventArgs.cs
- NameNode.cs
- OutputCacheSettingsSection.cs
- ImageMetadata.cs
- EntityClientCacheKey.cs
- WebPartManager.cs
- VerticalAlignConverter.cs
- RegistryPermission.cs
- ThemeableAttribute.cs
- StorageInfo.cs
- DbConnectionPoolGroupProviderInfo.cs
- SingleObjectCollection.cs
- XPathEmptyIterator.cs
- DataGridViewColumnTypeEditor.cs
- OleDbParameterCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- FontUnitConverter.cs
- GradientStop.cs
- EditingCommands.cs
- ChangeBlockUndoRecord.cs
- ListBindingHelper.cs
- XmlSchemaObjectTable.cs
- SafeReversePInvokeHandle.cs
- SQLByte.cs
- PassportPrincipal.cs
- Page.cs
- DataGridViewAdvancedBorderStyle.cs
- RoutedUICommand.cs
- AnnotationResourceChangedEventArgs.cs
- FixedSOMContainer.cs
- BooleanExpr.cs
- XmlDeclaration.cs
- ControlLocalizer.cs