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
- ColorEditor.cs
- XmlResolver.cs
- ResXFileRef.cs
- CompositionAdorner.cs
- TextFormatterImp.cs
- Size3D.cs
- NativeMethods.cs
- WebPartZoneBaseDesigner.cs
- Publisher.cs
- ReferenceService.cs
- counter.cs
- ExpandCollapseIsCheckedConverter.cs
- InputProcessorProfiles.cs
- OdbcCommandBuilder.cs
- NGCSerializer.cs
- ControllableStoryboardAction.cs
- ValueType.cs
- ProbeMatchesApril2005.cs
- ProbeRequestResponseAsyncResult.cs
- GiveFeedbackEventArgs.cs
- SortAction.cs
- HwndKeyboardInputProvider.cs
- TextTreeNode.cs
- TransformGroup.cs
- ContentDefinition.cs
- HTMLTextWriter.cs
- XmlDocumentSerializer.cs
- _Semaphore.cs
- HandlerBase.cs
- MessageBox.cs
- DataServiceQueryException.cs
- SqlPersonalizationProvider.cs
- XamlStream.cs
- XNodeValidator.cs
- LambdaCompiler.Generated.cs
- ViewService.cs
- LinkConverter.cs
- ObjectSet.cs
- GuidConverter.cs
- ToolBar.cs
- HintTextConverter.cs
- InnerItemCollectionView.cs
- LayoutSettings.cs
- ErrorTableItemStyle.cs
- ChildDocumentBlock.cs
- RemoteCryptoTokenProvider.cs
- PerfCounters.cs
- InputBuffer.cs
- ThreadStaticAttribute.cs
- WebPartDisplayModeCollection.cs
- CodeTypeOfExpression.cs
- WebConfigurationManager.cs
- ListGeneralPage.cs
- NumericExpr.cs
- ObjectConverter.cs
- RectangleF.cs
- UnsafeNativeMethods.cs
- RankException.cs
- streamingZipPartStream.cs
- SemanticTag.cs
- GradientStop.cs
- DesignerAdapterUtil.cs
- ButtonAutomationPeer.cs
- SQLInt16Storage.cs
- EventDescriptorCollection.cs
- AtomPub10ServiceDocumentFormatter.cs
- BitmapCache.cs
- Serializer.cs
- QueryParameter.cs
- SortDescription.cs
- CodeEventReferenceExpression.cs
- DataGridViewComboBoxColumnDesigner.cs
- Emitter.cs
- MailHeaderInfo.cs
- NotifyCollectionChangedEventArgs.cs
- HostExecutionContextManager.cs
- XmlTextReader.cs
- CodeArrayIndexerExpression.cs
- TextFormatter.cs
- DataTablePropertyDescriptor.cs
- StreamInfo.cs
- ClientEventManager.cs
- SimpleRecyclingCache.cs
- HebrewNumber.cs
- VisualCollection.cs
- TextProperties.cs
- XomlDesignerLoader.cs
- HierarchicalDataBoundControl.cs
- DirectoryObjectSecurity.cs
- OutputCacheProfileCollection.cs
- WizardStepBase.cs
- PrivateFontCollection.cs
- ScriptReferenceEventArgs.cs
- LocationUpdates.cs
- WebContext.cs
- ObjectListDesigner.cs
- AnimatedTypeHelpers.cs
- EntityDataSourceSelectingEventArgs.cs
- CheckBoxAutomationPeer.cs
- TextAdaptor.cs