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
- ManagementBaseObject.cs
- JobInputBins.cs
- Literal.cs
- EmissiveMaterial.cs
- DataGridView.cs
- Speller.cs
- WebEventTraceProvider.cs
- RectangleConverter.cs
- EntityTemplateUserControl.cs
- ClientScriptManager.cs
- OptimizedTemplateContent.cs
- Executor.cs
- CacheSection.cs
- TemplateBamlTreeBuilder.cs
- ColorTransform.cs
- DetailsViewInsertedEventArgs.cs
- RelatedImageListAttribute.cs
- StringReader.cs
- InvalidPrinterException.cs
- HorizontalAlignConverter.cs
- SqlDataSourceEnumerator.cs
- ViewLoader.cs
- DiagnosticTrace.cs
- Monitor.cs
- RectAnimation.cs
- InvokeWebServiceDesigner.cs
- TransformGroup.cs
- SimpleHandlerFactory.cs
- BufferedStream.cs
- WindowProviderWrapper.cs
- MouseActionValueSerializer.cs
- GAC.cs
- DataSourceProvider.cs
- mactripleDES.cs
- UIElementIsland.cs
- EmptyQuery.cs
- ParameterExpression.cs
- HtmlContainerControl.cs
- TraceEventCache.cs
- View.cs
- HtmlLinkAdapter.cs
- LabelDesigner.cs
- ClientRoleProvider.cs
- AstNode.cs
- UTF8Encoding.cs
- RenderingEventArgs.cs
- Rotation3D.cs
- ObjectDataSourceSelectingEventArgs.cs
- XmlSchemaComplexType.cs
- CodeTypeMember.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BinaryFormatter.cs
- translator.cs
- SelectionListComponentEditor.cs
- ObjectDataSourceChooseTypePanel.cs
- WebBrowsableAttribute.cs
- TablePattern.cs
- DataMisalignedException.cs
- ComplexObject.cs
- SmtpMail.cs
- InvokePattern.cs
- TreeNode.cs
- ReferencedAssembly.cs
- ConfigurationException.cs
- FloaterParaClient.cs
- StringFunctions.cs
- TrackPointCollection.cs
- NativeObjectSecurity.cs
- CallbackValidator.cs
- BuildProviderInstallComponent.cs
- FrameworkRichTextComposition.cs
- MasterPageBuildProvider.cs
- HandledMouseEvent.cs
- AmbientValueAttribute.cs
- AuthenticationService.cs
- SHA256Managed.cs
- ControlCollection.cs
- SqlMethodAttribute.cs
- RangeValuePatternIdentifiers.cs
- MaterialCollection.cs
- PageAsyncTaskManager.cs
- ActivityIdHeader.cs
- PeerMessageDispatcher.cs
- VersionedStream.cs
- BitStream.cs
- HandleScope.cs
- HttpListenerContext.cs
- DelegateTypeInfo.cs
- ListViewItemSelectionChangedEvent.cs
- ScrollBarAutomationPeer.cs
- XmlNavigatorStack.cs
- MasterPageCodeDomTreeGenerator.cs
- StrongNamePublicKeyBlob.cs
- Clause.cs
- FrameworkContentElementAutomationPeer.cs
- EditingCoordinator.cs
- HtmlElement.cs
- ScalarRestriction.cs
- OracleBFile.cs
- PathSegmentCollection.cs