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
- FixedSOMLineRanges.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- EncryptedPackage.cs
- SByteConverter.cs
- ReliableOutputConnection.cs
- PageThemeBuildProvider.cs
- WebBrowser.cs
- Parser.cs
- CodeRemoveEventStatement.cs
- TrustLevel.cs
- ConditionalAttribute.cs
- DataServiceQueryOfT.cs
- TextFormatterHost.cs
- ReadOnlyDataSourceView.cs
- WebException.cs
- X509Certificate2Collection.cs
- ClientScriptManager.cs
- NullRuntimeConfig.cs
- GridViewColumnHeader.cs
- HScrollProperties.cs
- XsdBuildProvider.cs
- BigInt.cs
- CqlQuery.cs
- WebPartZoneCollection.cs
- XmlKeywords.cs
- BuildProviderAppliesToAttribute.cs
- PlaceHolder.cs
- XPathAncestorQuery.cs
- DateTimeConstantAttribute.cs
- RightsManagementInformation.cs
- ObjectDataSourceChooseTypePanel.cs
- AttachmentCollection.cs
- BufferedReadStream.cs
- ReadOnlyTernaryTree.cs
- ResourceDescriptionAttribute.cs
- CqlIdentifiers.cs
- XmlRawWriter.cs
- BamlLocalizer.cs
- DateBoldEvent.cs
- HealthMonitoringSectionHelper.cs
- WmlTextBoxAdapter.cs
- SqlConnectionString.cs
- XmlQueryOutput.cs
- RequestCacheEntry.cs
- RelationshipConverter.cs
- XhtmlTextWriter.cs
- NativeMethodsOther.cs
- DesignBinding.cs
- PropertyMapper.cs
- DropTarget.cs
- ClockGroup.cs
- TextFormatterContext.cs
- TextRunProperties.cs
- EntityClientCacheEntry.cs
- VirtualPathUtility.cs
- SystemParameters.cs
- odbcmetadatafactory.cs
- DelegatedStream.cs
- SchemaCompiler.cs
- OletxTransactionFormatter.cs
- RepeatButton.cs
- HttpListenerTimeoutManager.cs
- ThicknessKeyFrameCollection.cs
- SubpageParagraph.cs
- AttachedAnnotationChangedEventArgs.cs
- TextShapeableCharacters.cs
- XPathMultyIterator.cs
- ConsoleKeyInfo.cs
- CoreSwitches.cs
- XPathDocument.cs
- MimeObjectFactory.cs
- XmlProcessingInstruction.cs
- Identity.cs
- InstanceDescriptor.cs
- TrackBar.cs
- MessageSecurityException.cs
- ResourceReferenceExpression.cs
- RuntimeUtils.cs
- PackageDigitalSignatureManager.cs
- OracleTimeSpan.cs
- AnnotationResourceChangedEventArgs.cs
- MiniLockedBorderGlyph.cs
- HtmlInputHidden.cs
- XPathNodePointer.cs
- CannotUnloadAppDomainException.cs
- ImageIndexConverter.cs
- TreeBuilderXamlTranslator.cs
- HtmlContainerControl.cs
- AppSettingsSection.cs
- PermissionSet.cs
- OutputWindow.cs
- MessageHeaders.cs
- ToolStripDropDownClosingEventArgs.cs
- PrivilegeNotHeldException.cs
- DataGridViewRowPrePaintEventArgs.cs
- GifBitmapEncoder.cs
- StandardOleMarshalObject.cs
- HtmlMeta.cs
- ApplicationSettingsBase.cs
- ListParagraph.cs