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
- ResXFileRef.cs
- controlskin.cs
- ProjectedWrapper.cs
- DataGridCellsPresenter.cs
- ToolstripProfessionalRenderer.cs
- CompilerScope.Storage.cs
- baseshape.cs
- ListBase.cs
- BitmapEffectvisualstate.cs
- ObjectConverter.cs
- FontInfo.cs
- Domain.cs
- TreeNodeCollectionEditorDialog.cs
- Instrumentation.cs
- SplineKeyFrames.cs
- XsltSettings.cs
- wgx_sdk_version.cs
- ListBoxItem.cs
- CapabilitiesSection.cs
- WebPartVerbsEventArgs.cs
- CodeDomSerializationProvider.cs
- Triplet.cs
- CqlErrorHelper.cs
- PointHitTestResult.cs
- DataSvcMapFile.cs
- EntityException.cs
- UpDownEvent.cs
- IndexOutOfRangeException.cs
- HttpRequest.cs
- WinEventTracker.cs
- DateTimeConverter2.cs
- DragAssistanceManager.cs
- TextEffectResolver.cs
- LabelInfo.cs
- ActivityInstance.cs
- KeyedQueue.cs
- FilterableData.cs
- BulletChrome.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- HyperLink.cs
- HttpClientCertificate.cs
- EntityContainer.cs
- GPRECT.cs
- ResourceReader.cs
- TimeSpanStorage.cs
- MarkupWriter.cs
- EndPoint.cs
- UpdateRecord.cs
- UriTemplateTable.cs
- BitmapEffectGroup.cs
- OleDbCommandBuilder.cs
- VScrollBar.cs
- TrackingProfile.cs
- ParserHooks.cs
- ArrayEditor.cs
- ToolStripDropDownMenu.cs
- DbConnectionPoolGroup.cs
- SecurityUtils.cs
- ItemsPanelTemplate.cs
- EntityDesignerBuildProvider.cs
- CommandID.cs
- CodeExpressionCollection.cs
- KeyTimeConverter.cs
- PointValueSerializer.cs
- ConfigXmlText.cs
- TraceContext.cs
- GlobalDataBindingHandler.cs
- StrokeNode.cs
- InvariantComparer.cs
- Int32CollectionConverter.cs
- HybridObjectCache.cs
- WebPartConnectionsCancelVerb.cs
- GradientBrush.cs
- CollectionBuilder.cs
- VisualTreeUtils.cs
- XPathDescendantIterator.cs
- ControlValuePropertyAttribute.cs
- KerberosSecurityTokenParameters.cs
- XmlUtil.cs
- HttpValueCollection.cs
- PagedDataSource.cs
- HtmlShimManager.cs
- Array.cs
- ToolStripItemImageRenderEventArgs.cs
- EventSourceCreationData.cs
- DataSourceHelper.cs
- ColumnPropertiesGroup.cs
- BinaryConverter.cs
- Attributes.cs
- MatrixConverter.cs
- DiagnosticTrace.cs
- SystemIPInterfaceProperties.cs
- XPathParser.cs
- SchemaEntity.cs
- Code.cs
- Walker.cs
- PersistenceTypeAttribute.cs
- ToolStripOverflowButton.cs
- Sequence.cs
- EntityCommandCompilationException.cs