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
- HtmlInputReset.cs
- XmlEncodedRawTextWriter.cs
- DictionarySurrogate.cs
- RemoveStoryboard.cs
- SupportingTokenChannel.cs
- ButtonDesigner.cs
- Stream.cs
- ClearCollection.cs
- GenericUriParser.cs
- DataRecordObjectView.cs
- XmlNodeReader.cs
- RegexMatchCollection.cs
- CodePageEncoding.cs
- StylusLogic.cs
- Mouse.cs
- ToolStripItemClickedEventArgs.cs
- LayoutInformation.cs
- IdentifierCreationService.cs
- FlowDocumentPage.cs
- InternalRelationshipCollection.cs
- ResponseStream.cs
- DataServiceContext.cs
- ListMarkerLine.cs
- AnimationTimeline.cs
- SchemaEntity.cs
- ZoneIdentityPermission.cs
- PathSegment.cs
- SQLDateTime.cs
- XamlPoint3DCollectionSerializer.cs
- EntityDataSourceValidationException.cs
- XmlSchemaSimpleContent.cs
- StrongNameKeyPair.cs
- TypeUtil.cs
- SyndicationFeed.cs
- TypeDescriptionProviderAttribute.cs
- SoapTransportImporter.cs
- AddInActivator.cs
- Membership.cs
- messageonlyhwndwrapper.cs
- DrawingAttributes.cs
- EmptyControlCollection.cs
- Assembly.cs
- AnimationStorage.cs
- MetadataCacheItem.cs
- GroupQuery.cs
- FontFamilyConverter.cs
- DbUpdateCommandTree.cs
- ColumnBinding.cs
- CodeMemberEvent.cs
- LostFocusEventManager.cs
- XmlBindingWorker.cs
- CharacterString.cs
- ServiceBusyException.cs
- _NegoState.cs
- MatrixKeyFrameCollection.cs
- SecurityContext.cs
- PolicyManager.cs
- SynchronizedDispatch.cs
- NotifyParentPropertyAttribute.cs
- XmlBindingWorker.cs
- FragmentQueryKB.cs
- COM2EnumConverter.cs
- CommunicationObjectManager.cs
- WebPartZoneCollection.cs
- DiscoveryReferences.cs
- AttachedPropertyMethodSelector.cs
- ChangeBlockUndoRecord.cs
- GACIdentityPermission.cs
- CallSiteOps.cs
- ContainerCodeDomSerializer.cs
- FactoryMaker.cs
- Trigger.cs
- documentsequencetextview.cs
- RepeatInfo.cs
- MarkerProperties.cs
- WebPartVerb.cs
- Stylesheet.cs
- App.cs
- ServiceHost.cs
- ControllableStoryboardAction.cs
- X509WindowsSecurityToken.cs
- WebControl.cs
- RequestDescription.cs
- HistoryEventArgs.cs
- AttributeCollection.cs
- NodeFunctions.cs
- ActivityTypeCodeDomSerializer.cs
- PipeStream.cs
- RectConverter.cs
- TransformationRules.cs
- ConvertEvent.cs
- DropSource.cs
- Pair.cs
- SafeNativeMethodsCLR.cs
- ServiceMetadataExtension.cs
- DateTimeConverter2.cs
- EndpointConfigContainer.cs
- CallSiteOps.cs
- UniqueConstraint.cs
- EditingCommands.cs