Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Label.cs
- SqlMethodTransformer.cs
- PageRequestManager.cs
- TripleDES.cs
- URLMembershipCondition.cs
- HttpCacheVary.cs
- ItemCheckedEvent.cs
- TextElementEnumerator.cs
- WindowsStreamSecurityBindingElement.cs
- SessionStateContainer.cs
- SystemBrushes.cs
- ToolZone.cs
- TransactionState.cs
- WebBrowserBase.cs
- TemplateBindingExpression.cs
- UnsafeNativeMethodsCLR.cs
- RecognizerStateChangedEventArgs.cs
- TextDocumentView.cs
- ValidatorUtils.cs
- CheckBoxList.cs
- PassportAuthenticationModule.cs
- SendMailErrorEventArgs.cs
- DataObjectAttribute.cs
- XmlSubtreeReader.cs
- Stackframe.cs
- MexTcpBindingElement.cs
- AssociationTypeEmitter.cs
- OdbcConnection.cs
- Point3DValueSerializer.cs
- RadioButton.cs
- CultureMapper.cs
- Attributes.cs
- Calendar.cs
- ClipboardProcessor.cs
- PropertyDescriptorCollection.cs
- ImageMap.cs
- FactoryGenerator.cs
- Timer.cs
- DBSqlParser.cs
- OleDbErrorCollection.cs
- HostingEnvironmentSection.cs
- PreviewPrintController.cs
- ScalarOps.cs
- RequestResponse.cs
- IndentedWriter.cs
- GZipDecoder.cs
- WebPartDisplayModeEventArgs.cs
- DropDownHolder.cs
- DecimalConstantAttribute.cs
- ISFTagAndGuidCache.cs
- Polygon.cs
- DataGridTablesFactory.cs
- CodeDomSerializerBase.cs
- PlatformCulture.cs
- XmlArrayAttribute.cs
- PermissionSetTriple.cs
- OleDbStruct.cs
- IndexedEnumerable.cs
- RemoteX509AsymmetricSecurityKey.cs
- HttpsHostedTransportConfiguration.cs
- XsltQilFactory.cs
- FormClosingEvent.cs
- Window.cs
- DrawingAttributes.cs
- DrawingAttributesDefaultValueFactory.cs
- MethodImplAttribute.cs
- Int32.cs
- WebServiceHandler.cs
- MouseActionValueSerializer.cs
- NativeMethods.cs
- ETagAttribute.cs
- SoapFault.cs
- SmiContext.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- MultiAsyncResult.cs
- ToolStripLocationCancelEventArgs.cs
- ErrorRuntimeConfig.cs
- UrlPath.cs
- TiffBitmapDecoder.cs
- CorrelationService.cs
- dsa.cs
- TextRenderer.cs
- StringOutput.cs
- RSAProtectedConfigurationProvider.cs
- InteropExecutor.cs
- SecureEnvironment.cs
- Expressions.cs
- XsltException.cs
- EmptyControlCollection.cs
- XmlSchemaExternal.cs
- XPathBinder.cs
- ExitEventArgs.cs
- SharedDp.cs
- UndoManager.cs
- MdImport.cs
- ButtonBase.cs
- TokenBasedSetEnumerator.cs
- ContentElement.cs
- SrgsDocumentParser.cs
- WebPartConnection.cs