Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SuppressMergeCheckAttribute.cs
- SocketAddress.cs
- DrawingContextDrawingContextWalker.cs
- Int16Converter.cs
- DeploymentSection.cs
- SmiGettersStream.cs
- UiaCoreTypesApi.cs
- SiteMembershipCondition.cs
- DoubleUtil.cs
- ContextStaticAttribute.cs
- CodeGotoStatement.cs
- TextRenderer.cs
- HttpGetClientProtocol.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- PlainXmlSerializer.cs
- _FixedSizeReader.cs
- XmlQueryCardinality.cs
- TextElement.cs
- GlyphInfoList.cs
- Input.cs
- ProcessProtocolHandler.cs
- TextElementEditingBehaviorAttribute.cs
- IdentityValidationException.cs
- MetadataSerializer.cs
- ChildChangedEventArgs.cs
- cookie.cs
- UnsupportedPolicyOptionsException.cs
- ThemeDirectoryCompiler.cs
- XmlSubtreeReader.cs
- metadatamappinghashervisitor.cs
- SendActivityDesignerTheme.cs
- ThreadExceptionDialog.cs
- MeshGeometry3D.cs
- ResourceType.cs
- ListDictionary.cs
- Util.cs
- DataControlFieldHeaderCell.cs
- TextBox.cs
- TypeBuilder.cs
- ProcessInfo.cs
- StylusTip.cs
- TypeValidationEventArgs.cs
- PtsHelper.cs
- SetUserLanguageRequest.cs
- wgx_render.cs
- ACE.cs
- CompositeCollection.cs
- ping.cs
- XAMLParseException.cs
- CacheChildrenQuery.cs
- ObjectDataSourceDisposingEventArgs.cs
- DbProviderFactories.cs
- ToolStripManager.cs
- TabControlCancelEvent.cs
- TreeViewTemplateSelector.cs
- DSACryptoServiceProvider.cs
- UnsettableComboBox.cs
- TimeSpanConverter.cs
- ConfigurationStrings.cs
- CollectionViewProxy.cs
- SpotLight.cs
- VariantWrapper.cs
- BuildManagerHost.cs
- CopyAttributesAction.cs
- HashAlgorithm.cs
- FontDriver.cs
- ImageAnimator.cs
- DictionarySurrogate.cs
- RowsCopiedEventArgs.cs
- ZipIORawDataFileBlock.cs
- UiaCoreApi.cs
- ToolTipAutomationPeer.cs
- ContainerFilterService.cs
- Misc.cs
- RelationshipFixer.cs
- PeerTransportListenAddressValidatorAttribute.cs
- ItemCheckEvent.cs
- TargetConverter.cs
- ChannelManagerService.cs
- DataAdapter.cs
- MimeMultiPart.cs
- DataControlButton.cs
- TypeToken.cs
- FamilyCollection.cs
- TableDetailsRow.cs
- DataGridViewLayoutData.cs
- AutomationPatternInfo.cs
- CopyOfAction.cs
- ElementsClipboardData.cs
- XmlReflectionImporter.cs
- InvalidAsynchronousStateException.cs
- URLMembershipCondition.cs
- HwndSource.cs
- NativeActivity.cs
- ReadOnlyPropertyMetadata.cs
- XmlDocumentFragment.cs
- XmlQueryTypeFactory.cs
- ExternalDataExchangeService.cs
- EditorZoneBase.cs
- StringPropertyBuilder.cs