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
- InteropTrackingRecord.cs
- BridgeDataReader.cs
- UpdateManifestForBrowserApplication.cs
- TextDocumentView.cs
- DeferredBinaryDeserializerExtension.cs
- OdbcConnectionStringbuilder.cs
- FormViewDeleteEventArgs.cs
- TextLineBreak.cs
- MediaEntryAttribute.cs
- ThreadExceptionEvent.cs
- Timer.cs
- EditorPart.cs
- HttpModuleActionCollection.cs
- Constants.cs
- XmlWrappingWriter.cs
- ProfileEventArgs.cs
- XmlDictionaryReader.cs
- XPathDocument.cs
- CqlBlock.cs
- AssemblyHelper.cs
- MaterializeFromAtom.cs
- WebServiceHostFactory.cs
- WebPartManagerInternals.cs
- LabelDesigner.cs
- CodeDesigner.cs
- Label.cs
- BypassElement.cs
- recordstate.cs
- WmiEventSink.cs
- EntityDataSourceView.cs
- SqlConnectionFactory.cs
- SystemInformation.cs
- PropertyManager.cs
- TabletCollection.cs
- ChangesetResponse.cs
- SmtpDigestAuthenticationModule.cs
- RequestQueue.cs
- Solver.cs
- LineBreak.cs
- ProcessHostServerConfig.cs
- ExpressionVisitor.cs
- SafeCertificateStore.cs
- HttpModuleAction.cs
- QuaternionAnimation.cs
- XAMLParseException.cs
- KeyConstraint.cs
- ExtensionQuery.cs
- ScalarConstant.cs
- DbXmlEnabledProviderManifest.cs
- Expression.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DocumentCollection.cs
- EraserBehavior.cs
- DataControlReference.cs
- TraceXPathNavigator.cs
- SHA384.cs
- BinaryConverter.cs
- RectangleHotSpot.cs
- Bits.cs
- ImageClickEventArgs.cs
- ParagraphVisual.cs
- MissingManifestResourceException.cs
- BitmapEffect.cs
- WebDescriptionAttribute.cs
- nulltextnavigator.cs
- FontDriver.cs
- CodeMethodReturnStatement.cs
- WebPartZoneCollection.cs
- OleDbError.cs
- CacheRequest.cs
- InputLangChangeEvent.cs
- SubclassTypeValidator.cs
- WebSysDescriptionAttribute.cs
- PointF.cs
- safelink.cs
- SqlAliasesReferenced.cs
- Floater.cs
- XmlAnyElementAttribute.cs
- DocumentSequenceHighlightLayer.cs
- PerspectiveCamera.cs
- PageAsyncTaskManager.cs
- BaseDataListPage.cs
- UIPropertyMetadata.cs
- Table.cs
- WindowsPen.cs
- HtmlButton.cs
- WindowsScrollBar.cs
- QuaternionValueSerializer.cs
- ControlPaint.cs
- PointCollection.cs
- TimelineGroup.cs
- MessageEnumerator.cs
- BulletedList.cs
- WebPartManager.cs
- EventHandlerList.cs
- ScriptRegistrationManager.cs
- SecurityPermission.cs
- SimpleApplicationHost.cs
- AsymmetricCryptoHandle.cs
- SqlCacheDependencySection.cs