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
- CollectionsUtil.cs
- TextEditorCopyPaste.cs
- RoleExceptions.cs
- XmlSignificantWhitespace.cs
- DataGridParentRows.cs
- ProxyWebPart.cs
- WSTrust.cs
- RemotingConfigParser.cs
- EmptyImpersonationContext.cs
- SqlResolver.cs
- ObjectResult.cs
- SafeThreadHandle.cs
- EntityObject.cs
- CalendarAutoFormat.cs
- SystemInfo.cs
- ButtonFieldBase.cs
- UriGenerator.cs
- IdentitySection.cs
- AsymmetricKeyExchangeFormatter.cs
- DateTimeStorage.cs
- CompilerInfo.cs
- HyperLinkStyle.cs
- HttpStreamFormatter.cs
- PingOptions.cs
- ControlAdapter.cs
- PerformanceCountersElement.cs
- StrokeNodeData.cs
- HashCodeCombiner.cs
- RemotingClientProxy.cs
- UnknownWrapper.cs
- XmlNavigatorStack.cs
- ThreadExceptionDialog.cs
- DispatchChannelSink.cs
- TransformProviderWrapper.cs
- TableLayoutPanelCellPosition.cs
- CodeArgumentReferenceExpression.cs
- HtmlInputControl.cs
- PropertyGrid.cs
- LocationUpdates.cs
- InternalConfigConfigurationFactory.cs
- TableLayoutRowStyleCollection.cs
- DesignerCategoryAttribute.cs
- baseaxisquery.cs
- GroupQuery.cs
- StsCommunicationException.cs
- ApplicationHost.cs
- UndoUnit.cs
- XamlWriter.cs
- DeleteCardRequest.cs
- GrammarBuilderDictation.cs
- Rights.cs
- RecoverInstanceLocksCommand.cs
- PassportPrincipal.cs
- LiteralTextContainerControlBuilder.cs
- SelectionPatternIdentifiers.cs
- Stroke.cs
- FlowDocument.cs
- Int32Converter.cs
- XamlStackWriter.cs
- TextEndOfParagraph.cs
- TextTreeTextElementNode.cs
- UnknownExceptionActionHelper.cs
- CodeSubDirectoriesCollection.cs
- SqlOuterApplyReducer.cs
- webeventbuffer.cs
- ControlPaint.cs
- ValidationHelper.cs
- HealthMonitoringSectionHelper.cs
- HtmlLabelAdapter.cs
- DelegateArgument.cs
- ConfigurationValidatorAttribute.cs
- ClientData.cs
- LoginNameDesigner.cs
- ParserStreamGeometryContext.cs
- listitem.cs
- Model3DCollection.cs
- XmlQueryRuntime.cs
- RIPEMD160.cs
- WebPartDescription.cs
- DataGridColumnHeader.cs
- PrintingPermissionAttribute.cs
- UnhandledExceptionEventArgs.cs
- DetailsViewCommandEventArgs.cs
- ReadOnlyDataSourceView.cs
- Object.cs
- SplineKeyFrames.cs
- PersonalizationProviderHelper.cs
- ExpandedProjectionNode.cs
- DiscoveryEndpoint.cs
- Selection.cs
- CustomTypeDescriptor.cs
- ToolBarTray.cs
- ViewSimplifier.cs
- XamlSerializationHelper.cs
- oledbmetadatacollectionnames.cs
- TextTreeTextBlock.cs
- translator.cs
- SrgsNameValueTag.cs
- Misc.cs
- ResourceExpressionBuilder.cs