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
- ProxyManager.cs
- SettingsPropertyValueCollection.cs
- ParseHttpDate.cs
- MILUtilities.cs
- EmptyElement.cs
- ProfilePropertyNameValidator.cs
- PropertyIdentifier.cs
- ZipFileInfo.cs
- CornerRadius.cs
- LostFocusEventManager.cs
- ActivityCodeDomReferenceService.cs
- NamespaceInfo.cs
- IndexExpression.cs
- CheckBoxPopupAdapter.cs
- XmlSecureResolver.cs
- RecognizerInfo.cs
- WindowsListView.cs
- DecoderBestFitFallback.cs
- ProviderIncompatibleException.cs
- IgnoreFlushAndCloseStream.cs
- XmlChoiceIdentifierAttribute.cs
- FileFormatException.cs
- SpellerStatusTable.cs
- RangeEnumerable.cs
- StatusBarItemAutomationPeer.cs
- SignatureHelper.cs
- RenameRuleObjectDialog.cs
- StateMachine.cs
- ActiveXHelper.cs
- IApplicationTrustManager.cs
- SoapSchemaImporter.cs
- RuntimeCompatibilityAttribute.cs
- XamlReaderConstants.cs
- AuthorizationRule.cs
- ApplicationId.cs
- FixedPosition.cs
- MembershipSection.cs
- FileResponseElement.cs
- CustomError.cs
- fixedPageContentExtractor.cs
- SubclassTypeValidator.cs
- HijriCalendar.cs
- StylusOverProperty.cs
- LeftCellWrapper.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- SmiEventSink_DeferedProcessing.cs
- HttpContextWrapper.cs
- PageOutputColor.cs
- ColorDialog.cs
- BinaryReader.cs
- InputProcessorProfiles.cs
- MouseGesture.cs
- MatrixAnimationUsingPath.cs
- XmlAttributeAttribute.cs
- RegistryPermission.cs
- TargetInvocationException.cs
- PromptBuilder.cs
- EventProperty.cs
- StateWorkerRequest.cs
- PeerNearMe.cs
- VirtualDirectoryMappingCollection.cs
- InkCanvasSelectionAdorner.cs
- HandleCollector.cs
- ForeignConstraint.cs
- IConvertible.cs
- RangeValidator.cs
- BoundColumn.cs
- FormClosedEvent.cs
- HtmlInputRadioButton.cs
- PipelineDeploymentState.cs
- GridViewHeaderRowPresenter.cs
- TextEffect.cs
- BoundColumn.cs
- TemplateManager.cs
- DoubleAverageAggregationOperator.cs
- DragDropHelper.cs
- MethodMessage.cs
- ImageAttributes.cs
- Monitor.cs
- COM2EnumConverter.cs
- MethodBuilder.cs
- Table.cs
- CompareInfo.cs
- SectionVisual.cs
- ComAdminWrapper.cs
- ImageMetadata.cs
- OrderingInfo.cs
- HostProtectionException.cs
- StackOverflowException.cs
- BindingListCollectionView.cs
- ReflectionTypeLoadException.cs
- SafeCryptoHandles.cs
- AutoGeneratedField.cs
- MsmqPoisonMessageException.cs
- XmlUnspecifiedAttribute.cs
- InfiniteIntConverter.cs
- HandleExceptionArgs.cs
- PathGradientBrush.cs
- XmlSchemaSimpleTypeRestriction.cs
- ListBindingConverter.cs