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
- Formatter.cs
- SiteMapHierarchicalDataSourceView.cs
- Padding.cs
- TableLayoutPanelCellPosition.cs
- XmlDocumentType.cs
- AddingNewEventArgs.cs
- XmlSchemaInclude.cs
- HtmlElementEventArgs.cs
- MetadataCache.cs
- HandledMouseEvent.cs
- DefaultDialogButtons.cs
- WebResponse.cs
- SAPIEngineTypes.cs
- ListViewGroup.cs
- ToolBarOverflowPanel.cs
- CombinedHttpChannel.cs
- DataGridViewSelectedCellCollection.cs
- PropertyToken.cs
- StretchValidation.cs
- BaseDataListDesigner.cs
- ServiceBuildProvider.cs
- TreeBuilder.cs
- InlineObject.cs
- FrameworkElement.cs
- TdsParserStaticMethods.cs
- ConditionalAttribute.cs
- AttributeQuery.cs
- RemoteWebConfigurationHostStream.cs
- RestHandlerFactory.cs
- InternalBase.cs
- TableCell.cs
- SrgsElementFactory.cs
- DataControlFieldTypeEditor.cs
- DataGridRowClipboardEventArgs.cs
- DataServiceQuery.cs
- ListViewInsertionMark.cs
- UnknownWrapper.cs
- FormsAuthenticationTicket.cs
- wgx_exports.cs
- WindowsListView.cs
- UIElementHelper.cs
- Icon.cs
- Material.cs
- PageBuildProvider.cs
- OdbcError.cs
- ToolStripSplitStackLayout.cs
- DateTimeFormat.cs
- TripleDESCryptoServiceProvider.cs
- DocumentViewerBase.cs
- ExpressionQuoter.cs
- XmlDownloadManager.cs
- PropertyPathConverter.cs
- StatusBarItem.cs
- StylusDevice.cs
- AttributeCollection.cs
- FixedTextView.cs
- CacheSection.cs
- StringSource.cs
- ReflectionTypeLoadException.cs
- JsonEnumDataContract.cs
- XmlComplianceUtil.cs
- TreeViewImageIndexConverter.cs
- TextModifierScope.cs
- ViewGenerator.cs
- Material.cs
- CachedBitmap.cs
- Matrix3DStack.cs
- SoapFault.cs
- InvalidCastException.cs
- _UriSyntax.cs
- ContentControl.cs
- XmlSerializerVersionAttribute.cs
- AutomationElement.cs
- TableRowCollection.cs
- SqlUnionizer.cs
- TypeSystem.cs
- SecurityChannelFaultConverter.cs
- NamespaceList.cs
- X509CertificateCollection.cs
- BoundingRectTracker.cs
- SignedInfo.cs
- ScriptReference.cs
- InternalException.cs
- FileDialogPermission.cs
- PriorityRange.cs
- _OverlappedAsyncResult.cs
- OrderedDictionaryStateHelper.cs
- ProviderIncompatibleException.cs
- GeneralTransform.cs
- QuadraticBezierSegment.cs
- WmlObjectListAdapter.cs
- TransformerTypeCollection.cs
- _Win32.cs
- GridViewRow.cs
- InlineCollection.cs
- GlobalItem.cs
- DesignerForm.cs
- SnapshotChangeTrackingStrategy.cs
- IntegerValidator.cs
- TypeDependencyAttribute.cs