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
- DataServiceExpressionVisitor.cs
- Function.cs
- Baml6Assembly.cs
- SemanticResolver.cs
- EditorPart.cs
- HtmlForm.cs
- BooleanConverter.cs
- XmlReflectionImporter.cs
- SafeLocalMemHandle.cs
- TextElementEditingBehaviorAttribute.cs
- Codec.cs
- DependencyPropertyAttribute.cs
- TypedDatasetGenerator.cs
- RoutedEventValueSerializer.cs
- CellParaClient.cs
- DataSourceGroupCollection.cs
- SortQueryOperator.cs
- IndividualDeviceConfig.cs
- DataControlField.cs
- TagMapCollection.cs
- FixedPageStructure.cs
- VirtualPathData.cs
- EntityClassGenerator.cs
- LinkLabel.cs
- SslStreamSecurityUpgradeProvider.cs
- DataGridViewRowHeaderCell.cs
- PixelFormat.cs
- EmbeddedMailObjectsCollection.cs
- StandardBindingElementCollection.cs
- Base64Stream.cs
- DBSchemaRow.cs
- Vector.cs
- ShapingWorkspace.cs
- DataGridRelationshipRow.cs
- CustomValidator.cs
- Converter.cs
- CodeChecksumPragma.cs
- DbException.cs
- RuntimeHandles.cs
- NameObjectCollectionBase.cs
- SystemIcons.cs
- PropertyEntry.cs
- FontFamilyValueSerializer.cs
- WorkflowFormatterBehavior.cs
- ActivityInterfaces.cs
- TypeSource.cs
- StrokeNode.cs
- SmiGettersStream.cs
- CallbackTimeoutsElement.cs
- SortFieldComparer.cs
- OperationInfo.cs
- FilteredReadOnlyMetadataCollection.cs
- CompiledRegexRunnerFactory.cs
- PageParserFilter.cs
- OperatingSystem.cs
- CodeArrayIndexerExpression.cs
- ModelPropertyImpl.cs
- InvalidPrinterException.cs
- BuildProviderCollection.cs
- regiisutil.cs
- Serializer.cs
- DataGridViewCellFormattingEventArgs.cs
- Regex.cs
- XPathParser.cs
- OledbConnectionStringbuilder.cs
- BamlResourceDeserializer.cs
- GC.cs
- HostingEnvironmentSection.cs
- CacheDependency.cs
- EntityDataSourceEntityTypeFilterItem.cs
- SqlBuffer.cs
- Italic.cs
- KeyGestureValueSerializer.cs
- DeferredReference.cs
- GroupItemAutomationPeer.cs
- XmlArrayItemAttribute.cs
- WebRequest.cs
- SqlTopReducer.cs
- CallSiteOps.cs
- CategoryGridEntry.cs
- ResourceReferenceExpressionConverter.cs
- WebConfigurationHost.cs
- TabControlEvent.cs
- TextModifierScope.cs
- NodeInfo.cs
- XamlSerializationHelper.cs
- ResXBuildProvider.cs
- Italic.cs
- ChannelSettingsElement.cs
- ResourceExpression.cs
- TextStore.cs
- FacetEnabledSchemaElement.cs
- TextBlockAutomationPeer.cs
- MembershipSection.cs
- RichTextBox.cs
- SafeFileMappingHandle.cs
- AlphabetConverter.cs
- RuleAttributes.cs
- TextRenderer.cs
- BaseParser.cs