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
- VariableAction.cs
- DefaultTraceListener.cs
- CodeSnippetStatement.cs
- MailMessageEventArgs.cs
- DbConnectionInternal.cs
- PerSessionInstanceContextProvider.cs
- CopyNamespacesAction.cs
- FacetDescriptionElement.cs
- dtdvalidator.cs
- AssertFilter.cs
- OdbcError.cs
- LinqDataSourceView.cs
- TextDocumentView.cs
- SelectionRangeConverter.cs
- HttpCachePolicyBase.cs
- TableColumnCollection.cs
- GridViewSortEventArgs.cs
- BufferBuilder.cs
- DecoderNLS.cs
- odbcmetadatafactory.cs
- ResponseStream.cs
- CapabilitiesState.cs
- AsymmetricSignatureFormatter.cs
- ListView.cs
- ByteRangeDownloader.cs
- GenericWebPart.cs
- ShowExpandedMultiValueConverter.cs
- DefaultPropertyAttribute.cs
- FlowPosition.cs
- Hyperlink.cs
- FixedTextBuilder.cs
- SiblingIterators.cs
- TextRunCacheImp.cs
- InputEventArgs.cs
- TextElementAutomationPeer.cs
- RNGCryptoServiceProvider.cs
- DesignTimeParseData.cs
- RtType.cs
- GridViewPageEventArgs.cs
- GZipDecoder.cs
- UIElement3D.cs
- DbTransaction.cs
- TdsParserStateObject.cs
- DynamicRenderer.cs
- CacheSection.cs
- Crc32.cs
- IDictionary.cs
- TabRenderer.cs
- OleDbCommand.cs
- TargetControlTypeAttribute.cs
- TailCallAnalyzer.cs
- TextBounds.cs
- SystemWebCachingSectionGroup.cs
- SqlDataSourceConfigureFilterForm.cs
- TemplateControlCodeDomTreeGenerator.cs
- _LazyAsyncResult.cs
- SelectingProviderEventArgs.cs
- StateElementCollection.cs
- ChangesetResponse.cs
- DbUpdateCommandTree.cs
- SqlCacheDependencyDatabase.cs
- HtmlGenericControl.cs
- DataGridViewRowStateChangedEventArgs.cs
- ComponentResourceKeyConverter.cs
- DataServiceHost.cs
- PointCollection.cs
- Table.cs
- FixUp.cs
- ILGenerator.cs
- SubMenuStyleCollection.cs
- GlobalizationSection.cs
- ICollection.cs
- WebColorConverter.cs
- ObjectStateManager.cs
- ResourceReferenceExpressionConverter.cs
- SystemBrushes.cs
- MatcherBuilder.cs
- DbConnectionPool.cs
- RunInstallerAttribute.cs
- DataGridViewColumnHeaderCell.cs
- AsymmetricSignatureDeformatter.cs
- ImageSource.cs
- _SslState.cs
- DispatcherTimer.cs
- ColorContextHelper.cs
- SizeChangedEventArgs.cs
- RegexNode.cs
- GridItemPattern.cs
- InternalUserCancelledException.cs
- FullTrustAssembly.cs
- SingleObjectCollection.cs
- OletxTransactionManager.cs
- TextLineBreak.cs
- BindingValueChangedEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- _SSPIWrapper.cs
- CacheMemory.cs
- Span.cs
- CompositeFontInfo.cs
- XmlSerializationReader.cs