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
- CompareInfo.cs
- userdatakeys.cs
- Renderer.cs
- MissingManifestResourceException.cs
- CopyCodeAction.cs
- ProfileEventArgs.cs
- FlowDecisionLabelFeature.cs
- TogglePattern.cs
- RectangleHotSpot.cs
- UserPreferenceChangedEventArgs.cs
- SurrogateDataContract.cs
- EdmToObjectNamespaceMap.cs
- InstanceContext.cs
- TemplatePropertyEntry.cs
- Point3DCollectionConverter.cs
- SecondaryViewProvider.cs
- ConsumerConnectionPoint.cs
- NotImplementedException.cs
- MethodCallTranslator.cs
- ListItemViewControl.cs
- SoapSchemaMember.cs
- PowerModeChangedEventArgs.cs
- IsolatedStorageException.cs
- NavigateUrlConverter.cs
- CallbackValidatorAttribute.cs
- ApplicationDirectoryMembershipCondition.cs
- SocketException.cs
- PropertyMappingExceptionEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- Geometry.cs
- XPathMultyIterator.cs
- InlineUIContainer.cs
- WindowsSysHeader.cs
- Drawing.cs
- Material.cs
- FloaterBaseParaClient.cs
- RecognizedWordUnit.cs
- OracleParameter.cs
- AuthenticationSection.cs
- TaskHelper.cs
- Token.cs
- InstanceContext.cs
- RequestCacheEntry.cs
- __FastResourceComparer.cs
- ButtonBaseAutomationPeer.cs
- CodePageUtils.cs
- EventManager.cs
- NativeMethodsCLR.cs
- ProviderCollection.cs
- CacheVirtualItemsEvent.cs
- SerializationSectionGroup.cs
- SudsParser.cs
- ManipulationDelta.cs
- VarInfo.cs
- SqlFormatter.cs
- CrossSiteScriptingValidation.cs
- ProxyHwnd.cs
- SchemaManager.cs
- BrowserTree.cs
- LinearKeyFrames.cs
- DirectoryObjectSecurity.cs
- XmlLanguage.cs
- ObjectIDGenerator.cs
- DeflateEmulationStream.cs
- ResourcePart.cs
- Evidence.cs
- WindowInteractionStateTracker.cs
- GACMembershipCondition.cs
- ExpandedWrapper.cs
- BCryptHashAlgorithm.cs
- SchemaAttDef.cs
- UriSectionReader.cs
- CallTemplateAction.cs
- RecognizedPhrase.cs
- ProjectionCamera.cs
- BaseValidatorDesigner.cs
- FormViewPageEventArgs.cs
- DetailsViewModeEventArgs.cs
- UpdatableWrapper.cs
- PreservationFileWriter.cs
- ActionMismatchAddressingException.cs
- EraserBehavior.cs
- CacheAxisQuery.cs
- TextRange.cs
- ListViewItem.cs
- ValidationErrorCollection.cs
- activationcontext.cs
- Compiler.cs
- SqlExpander.cs
- PageContentCollection.cs
- EllipseGeometry.cs
- WebPartConnectionsConfigureVerb.cs
- ToolStripSeparatorRenderEventArgs.cs
- AccessorTable.cs
- OleDbSchemaGuid.cs
- CalendarDateChangedEventArgs.cs
- ClientSettings.cs
- MimeMultiPart.cs
- QueryModel.cs
- CompleteWizardStep.cs