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
- HostingEnvironmentException.cs
- MemoryPressure.cs
- DataObjectPastingEventArgs.cs
- NullableIntMinMaxAggregationOperator.cs
- NameValueCollection.cs
- QueryContinueDragEventArgs.cs
- DbParameterCollection.cs
- CriticalFinalizerObject.cs
- InternalConfigConfigurationFactory.cs
- MulticastIPAddressInformationCollection.cs
- XhtmlStyleClass.cs
- CodeThrowExceptionStatement.cs
- HtmlButton.cs
- ListSortDescription.cs
- QuaternionConverter.cs
- ConfigXmlCDataSection.cs
- MenuItemAutomationPeer.cs
- SizeF.cs
- CodeTypeDeclaration.cs
- indexingfiltermarshaler.cs
- UrlMappingsModule.cs
- RemotingSurrogateSelector.cs
- CrossContextChannel.cs
- OdbcStatementHandle.cs
- ColumnWidthChangingEvent.cs
- SqlDataSourceSummaryPanel.cs
- ViewCellRelation.cs
- FlowDocumentReaderAutomationPeer.cs
- TreeViewAutomationPeer.cs
- TypeToken.cs
- MouseGesture.cs
- HttpApplicationStateBase.cs
- ListViewItemCollectionEditor.cs
- ResourceReferenceKeyNotFoundException.cs
- followingsibling.cs
- _AutoWebProxyScriptHelper.cs
- PeerPresenceInfo.cs
- ProviderException.cs
- MultipartIdentifier.cs
- JsonSerializer.cs
- TypeConverterHelper.cs
- NestedContainer.cs
- ManageRequest.cs
- PointLightBase.cs
- VisualStyleInformation.cs
- RPIdentityRequirement.cs
- FieldBuilder.cs
- WebBrowser.cs
- TaskFileService.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- XamlStream.cs
- SqlConnectionStringBuilder.cs
- SqlConnection.cs
- ResolveInfo.cs
- MatrixTransform3D.cs
- Boolean.cs
- LessThanOrEqual.cs
- UnhandledExceptionEventArgs.cs
- DataStreams.cs
- ProxyWebPartManager.cs
- assemblycache.cs
- XmlQualifiedNameTest.cs
- OdbcConnectionFactory.cs
- FrameSecurityDescriptor.cs
- OleDbCommandBuilder.cs
- DataSourceConverter.cs
- DataServiceHost.cs
- UxThemeWrapper.cs
- Nullable.cs
- ExtendedPropertyDescriptor.cs
- MatrixStack.cs
- RegexInterpreter.cs
- BuildProvider.cs
- WebBrowserBase.cs
- ChainOfDependencies.cs
- DescendentsWalkerBase.cs
- RegistryKey.cs
- CorrelationQuery.cs
- XmlSchemaGroup.cs
- IERequestCache.cs
- CultureSpecificStringDictionary.cs
- SoapBinding.cs
- FaultDescriptionCollection.cs
- SecurityException.cs
- DataGridItemAutomationPeer.cs
- WebPartAddingEventArgs.cs
- UmAlQuraCalendar.cs
- HMACMD5.cs
- DbgCompiler.cs
- HwndTarget.cs
- SvcMapFileLoader.cs
- UITypeEditor.cs
- SqlAliasesReferenced.cs
- SoundPlayer.cs
- TextBoxBase.cs
- CodeFieldReferenceExpression.cs
- AutomationTextAttribute.cs
- XmlAttributeCollection.cs
- XmlCompatibilityReader.cs
- ImageInfo.cs