Code:
/ FX-1434 / FX-1434 / 1.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
- Calendar.cs
- SvcMapFile.cs
- DefinitionUpdate.cs
- SeverityFilter.cs
- HwndPanningFeedback.cs
- WinFormsSpinner.cs
- UpDownEvent.cs
- ToolStripDropDownClosingEventArgs.cs
- EdmItemError.cs
- Vector3dCollection.cs
- WindowsSlider.cs
- HtmlInputText.cs
- ZipFileInfo.cs
- autovalidator.cs
- XmlHierarchicalDataSourceView.cs
- HtmlElement.cs
- WebBrowserEvent.cs
- MemberPathMap.cs
- MemberRelationshipService.cs
- CachedBitmap.cs
- QilGenerator.cs
- CompositeActivityTypeDescriptorProvider.cs
- WaitHandleCannotBeOpenedException.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FileLoadException.cs
- ProvidePropertyAttribute.cs
- HierarchicalDataBoundControl.cs
- ColumnCollection.cs
- HttpHandlersSection.cs
- FormViewCommandEventArgs.cs
- AssociationTypeEmitter.cs
- WebPartEventArgs.cs
- webbrowsersite.cs
- ConnectionManagementElement.cs
- LoopExpression.cs
- ResourceDisplayNameAttribute.cs
- CodeRegionDirective.cs
- SerializationObjectManager.cs
- ProcessHost.cs
- BmpBitmapEncoder.cs
- AutomationPeer.cs
- Int32KeyFrameCollection.cs
- XmlQualifiedNameTest.cs
- _PooledStream.cs
- PrintDialog.cs
- GeometryModel3D.cs
- GenericPrincipal.cs
- RectValueSerializer.cs
- EndpointDiscoveryMetadata11.cs
- OraclePermission.cs
- UserNamePasswordServiceCredential.cs
- AddInAttribute.cs
- ObjectStateEntry.cs
- WizardForm.cs
- ColumnReorderedEventArgs.cs
- DecimalFormatter.cs
- XPathParser.cs
- SubpageParagraph.cs
- SortKey.cs
- LinkedList.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PolyQuadraticBezierSegment.cs
- HtmlInputReset.cs
- ErrorLog.cs
- CodeDomDesignerLoader.cs
- CustomValidator.cs
- Timer.cs
- FocusTracker.cs
- PackageStore.cs
- ApplicationSecurityManager.cs
- Transform3D.cs
- _OverlappedAsyncResult.cs
- DeploymentSectionCache.cs
- SafeHGlobalHandleCritical.cs
- ScopedKnownTypes.cs
- NativeWrapper.cs
- EdmProviderManifest.cs
- XmlSchemaInfo.cs
- AssemblySettingAttributes.cs
- TypefaceCollection.cs
- WebPartEventArgs.cs
- XPathBinder.cs
- MenuItemBinding.cs
- MouseActionValueSerializer.cs
- QuotedPrintableStream.cs
- HtmlInputHidden.cs
- SendActivityValidator.cs
- DocumentGridPage.cs
- ConsumerConnectionPoint.cs
- Evidence.cs
- Unit.cs
- dataprotectionpermissionattribute.cs
- BinHexDecoder.cs
- HostedElements.cs
- WorkflowQueueInfo.cs
- WebPartTransformerAttribute.cs
- ErrorTolerantObjectWriter.cs
- IISUnsafeMethods.cs
- LiteralControl.cs
- CaseInsensitiveComparer.cs