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
- SHA256.cs
- TextBoxView.cs
- SpellCheck.cs
- ObjectQuery_EntitySqlExtensions.cs
- NameValueCollection.cs
- PackageDigitalSignature.cs
- SmiRecordBuffer.cs
- WpfWebRequestHelper.cs
- Expression.cs
- BlobPersonalizationState.cs
- ExtensionWindow.cs
- Utility.cs
- ReflectionHelper.cs
- HtmlTable.cs
- JsonByteArrayDataContract.cs
- GZipStream.cs
- RedirectionProxy.cs
- RotateTransform3D.cs
- SubtreeProcessor.cs
- TableRowGroupCollection.cs
- SafeArrayRankMismatchException.cs
- HtmlSelect.cs
- TypeGeneratedEventArgs.cs
- DynamicResourceExtension.cs
- UnsafeNativeMethods.cs
- securitycriticaldataformultiplegetandset.cs
- PageCodeDomTreeGenerator.cs
- CapacityStreamGeometryContext.cs
- ResourceExpressionEditorSheet.cs
- iisPickupDirectory.cs
- AllMembershipCondition.cs
- BaseTemplateParser.cs
- Odbc32.cs
- TCPListener.cs
- SelectedDatesCollection.cs
- Int32AnimationUsingKeyFrames.cs
- DataBindingHandlerAttribute.cs
- ObjectIDGenerator.cs
- InlineObject.cs
- MemoryRecordBuffer.cs
- CreateSequence.cs
- XmlWhitespace.cs
- ResourceDictionary.cs
- ServicePointManagerElement.cs
- Configuration.cs
- SQLMembershipProvider.cs
- CompositeKey.cs
- UpdateRecord.cs
- StrongNameKeyPair.cs
- InternalConfigRoot.cs
- CharacterString.cs
- BaseAutoFormat.cs
- Misc.cs
- LocalValueEnumerator.cs
- SqlDependencyUtils.cs
- PrivateFontCollection.cs
- ACE.cs
- SqlWebEventProvider.cs
- StyleBamlTreeBuilder.cs
- IChannel.cs
- PathStreamGeometryContext.cs
- SafeNativeMethodsMilCoreApi.cs
- SubpageParagraph.cs
- CaseInsensitiveComparer.cs
- TypeListConverter.cs
- dataprotectionpermission.cs
- DurationConverter.cs
- HwndStylusInputProvider.cs
- XmlSchemaAttribute.cs
- ObfuscationAttribute.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ObjectSet.cs
- ProcessHostServerConfig.cs
- BaseTreeIterator.cs
- UIPropertyMetadata.cs
- DBConnection.cs
- ResourceDescriptionAttribute.cs
- TemplateBamlTreeBuilder.cs
- CodeAccessSecurityEngine.cs
- ClassicBorderDecorator.cs
- ExpressionPrinter.cs
- XmlCodeExporter.cs
- PenCursorManager.cs
- SqlDataSource.cs
- Lock.cs
- ToolStripItemEventArgs.cs
- DataObjectEventArgs.cs
- MethodAccessException.cs
- ConnectionsZone.cs
- XmlSignatureProperties.cs
- BehaviorDragDropEventArgs.cs
- SwitchLevelAttribute.cs
- TransformerInfoCollection.cs
- FixedFindEngine.cs
- HostedNamedPipeTransportManager.cs
- JsonDeserializer.cs
- Decorator.cs
- DecimalAnimationUsingKeyFrames.cs
- MultipleViewProviderWrapper.cs
- FileRegion.cs