Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ComponentModel / COM2Interop / COM2DataTypeToManagedDataTypeConverter.cs / 1305376 / COM2DataTypeToManagedDataTypeConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.ComponentModel.Com2Interop { using System.Runtime.Serialization.Formatters; using System.ComponentModel; using System.Diagnostics; using System; using System.Drawing; using System.ComponentModel.Design; using System.Collections; using Microsoft.Win32; ////// /// This base class maps an ole defined data type (OLE_COLOR, IFont, etc.), /// /// internal abstract class Com2DataTypeToManagedDataTypeConverter{ public virtual bool AllowExpand { get { return false; } } ////// /// Returns the managed type that this editor maps the property type to. /// public abstract Type ManagedType{ get; } ////// /// Converts the native value into a managed value /// public abstract object ConvertNativeToManaged(object nativeValue, Com2PropertyDescriptor pd); ////// /// Converts the managed value into a native value /// public abstract object ConvertManagedToNative(object managedValue, Com2PropertyDescriptor pd, ref bool cancelSet); } } // 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.Serialization.Formatters; using System.ComponentModel; using System.Diagnostics; using System; using System.Drawing; using System.ComponentModel.Design; using System.Collections; using Microsoft.Win32; ////// /// This base class maps an ole defined data type (OLE_COLOR, IFont, etc.), /// /// internal abstract class Com2DataTypeToManagedDataTypeConverter{ public virtual bool AllowExpand { get { return false; } } ////// /// Returns the managed type that this editor maps the property type to. /// public abstract Type ManagedType{ get; } ////// /// Converts the native value into a managed value /// public abstract object ConvertNativeToManaged(object nativeValue, Com2PropertyDescriptor pd); ////// /// Converts the managed value into a native value /// public abstract object ConvertManagedToNative(object managedValue, Com2PropertyDescriptor pd, ref bool cancelSet); } } // 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
- arabicshape.cs
- AnimationLayer.cs
- NameGenerator.cs
- SystemDiagnosticsSection.cs
- NetworkInformationPermission.cs
- LogStore.cs
- PopupRootAutomationPeer.cs
- Propagator.Evaluator.cs
- PasswordBoxAutomationPeer.cs
- ReflectEventDescriptor.cs
- DataColumn.cs
- HtmlAnchor.cs
- MainMenu.cs
- RTLAwareMessageBox.cs
- XappLauncher.cs
- FormatStringEditor.cs
- DataGridViewMethods.cs
- XmlUtilWriter.cs
- NamespaceInfo.cs
- XPathSelectionIterator.cs
- CodeAttributeDeclaration.cs
- SQLBinaryStorage.cs
- DecimalConverter.cs
- FrameworkRichTextComposition.cs
- AuthStoreRoleProvider.cs
- SecurityElement.cs
- DocumentsTrace.cs
- WebDescriptionAttribute.cs
- XPathDocument.cs
- EmbeddedMailObject.cs
- BitmapEffectDrawing.cs
- ArglessEventHandlerProxy.cs
- HttpContextServiceHost.cs
- ServiceDescriptionReflector.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SafeNativeMethods.cs
- KnownBoxes.cs
- StateMachineAction.cs
- GestureRecognitionResult.cs
- ComponentResourceManager.cs
- XslException.cs
- GatewayDefinition.cs
- SetIterators.cs
- OleDbException.cs
- FixedFlowMap.cs
- DesignerTransaction.cs
- DashStyle.cs
- HttpHandlersSection.cs
- SqlClientPermission.cs
- ExpandSegmentCollection.cs
- PasswordRecovery.cs
- SupportingTokenSecurityTokenResolver.cs
- PropertyDescriptors.cs
- ZeroOpNode.cs
- AnimationClock.cs
- XhtmlTextWriter.cs
- AppDomainProtocolHandler.cs
- SponsorHelper.cs
- RequestBringIntoViewEventArgs.cs
- JournalEntryStack.cs
- ScrollBar.cs
- TraceListeners.cs
- TemplateBindingExtension.cs
- TextTreeTextElementNode.cs
- PenLineCapValidation.cs
- OdbcConnectionFactory.cs
- StrokeSerializer.cs
- SelectedDatesCollection.cs
- Timer.cs
- SdlChannelSink.cs
- KeyedCollection.cs
- WindowsHyperlink.cs
- XmlText.cs
- TextInfo.cs
- WebPartCatalogAddVerb.cs
- SoapServerMethod.cs
- ExpressionVisitor.cs
- TextSelectionProcessor.cs
- MdiWindowListStrip.cs
- TemplateNameScope.cs
- SkewTransform.cs
- BadImageFormatException.cs
- CodeThrowExceptionStatement.cs
- RoleGroup.cs
- EntityException.cs
- EditorPartChrome.cs
- DataObjectMethodAttribute.cs
- CodeExpressionStatement.cs
- OracleEncoding.cs
- TrustManagerPromptUI.cs
- SqlFactory.cs
- GridViewRow.cs
- TreeBuilderXamlTranslator.cs
- VectorCollection.cs
- odbcmetadatacolumnnames.cs
- XhtmlConformanceSection.cs
- DataSourceControl.cs
- UdpRetransmissionSettings.cs
- ReceiveParametersContent.cs
- ServiceProviders.cs