Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ComponentModel / COM2Interop / Int32CAMarshaler.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeNativeMethods.cs
- TextDecorationCollection.cs
- AuthenticationConfig.cs
- BuilderElements.cs
- DateTimeHelper.cs
- OrderedDictionary.cs
- DataGridRowClipboardEventArgs.cs
- CompressedStack.cs
- ValueChangedEventManager.cs
- ImageMapEventArgs.cs
- MsmqInputChannelListener.cs
- UpdatePanel.cs
- VisualTransition.cs
- TemplateKey.cs
- DataException.cs
- UpdateProgress.cs
- SafeProcessHandle.cs
- ElementFactory.cs
- TypeElement.cs
- StatusBarItemAutomationPeer.cs
- _FtpControlStream.cs
- QueryExpression.cs
- ValueSerializer.cs
- ProxyHelper.cs
- Helper.cs
- XPathDocumentBuilder.cs
- MergeEnumerator.cs
- CodeGeneratorOptions.cs
- ServiceModelReg.cs
- CaseInsensitiveHashCodeProvider.cs
- WebInvokeAttribute.cs
- PathGradientBrush.cs
- ColorInterpolationModeValidation.cs
- LinqDataSourceUpdateEventArgs.cs
- Style.cs
- DataSourceHelper.cs
- ChannelProtectionRequirements.cs
- basecomparevalidator.cs
- HostExecutionContextManager.cs
- MessageQueue.cs
- LOSFormatter.cs
- DataSourceControlBuilder.cs
- DoWorkEventArgs.cs
- DataFormats.cs
- SafeLibraryHandle.cs
- Confirm.cs
- ModelTreeManager.cs
- DependsOnAttribute.cs
- Wildcard.cs
- Size.cs
- XsltArgumentList.cs
- DayRenderEvent.cs
- _NTAuthentication.cs
- MasterPageCodeDomTreeGenerator.cs
- IResourceProvider.cs
- EdmType.cs
- EntityKey.cs
- VectorAnimationBase.cs
- ServiceDescriptionImporter.cs
- Privilege.cs
- DbConnectionPool.cs
- CompositionCommandSet.cs
- Matrix3DConverter.cs
- XsltConvert.cs
- CheckBoxList.cs
- TimeZoneNotFoundException.cs
- HandleDictionary.cs
- DateTimeFormatInfoScanner.cs
- Pointer.cs
- WebPartConnectVerb.cs
- sqlstateclientmanager.cs
- ChannelDispatcherBase.cs
- DBDataPermissionAttribute.cs
- StylesEditorDialog.cs
- ModelMemberCollection.cs
- SignedPkcs7.cs
- ImageConverter.cs
- namescope.cs
- ReaderOutput.cs
- ConfigurationException.cs
- MethodBuilderInstantiation.cs
- BuilderPropertyEntry.cs
- UInt64.cs
- BindingContext.cs
- DbProviderSpecificTypePropertyAttribute.cs
- MergablePropertyAttribute.cs
- CultureInfoConverter.cs
- Partitioner.cs
- KeySpline.cs
- CanonicalFontFamilyReference.cs
- UserControlParser.cs
- GridViewRowPresenter.cs
- BidOverLoads.cs
- ImageSourceValueSerializer.cs
- LayoutEditorPart.cs
- FixedDocumentSequencePaginator.cs
- DBAsyncResult.cs
- InterleavedZipPartStream.cs
- SoapAttributes.cs
- TemplateInstanceAttribute.cs