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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HeaderCollection.cs
- ContentElement.cs
- TimeoutValidationAttribute.cs
- WriteLine.cs
- SystemIcmpV6Statistics.cs
- XmlAttributeProperties.cs
- BaseTreeIterator.cs
- NavigateUrlConverter.cs
- XmlException.cs
- FileFormatException.cs
- PersonalizationProvider.cs
- StrongName.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- RolePrincipal.cs
- NullableDecimalSumAggregationOperator.cs
- HandlerBase.cs
- RolePrincipal.cs
- BlurBitmapEffect.cs
- LinearGradientBrush.cs
- SimpleColumnProvider.cs
- PolicyValidationException.cs
- Span.cs
- XmlTextReaderImpl.cs
- StoreItemCollection.Loader.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- RandomNumberGenerator.cs
- ConfigurationLocationCollection.cs
- shaperfactoryquerycacheentry.cs
- Header.cs
- UpWmlPageAdapter.cs
- Logging.cs
- Stroke2.cs
- CacheHelper.cs
- ToolTipService.cs
- Attributes.cs
- LoadRetryConstantStrategy.cs
- DotExpr.cs
- RTTypeWrapper.cs
- MenuCommand.cs
- UnmanagedMarshal.cs
- ErrorRuntimeConfig.cs
- glyphs.cs
- RequestQueue.cs
- Propagator.Evaluator.cs
- ErrorWrapper.cs
- GenericEnumerator.cs
- Brush.cs
- JsonCollectionDataContract.cs
- TdsParserSafeHandles.cs
- RuntimeHelpers.cs
- SessionState.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewRowStateChangedEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- InlineUIContainer.cs
- EFColumnProvider.cs
- TextPointer.cs
- Rotation3DKeyFrameCollection.cs
- CodeSnippetCompileUnit.cs
- DecoderNLS.cs
- File.cs
- CapiHashAlgorithm.cs
- HandledMouseEvent.cs
- TagElement.cs
- FragmentQueryProcessor.cs
- FontFamilyValueSerializer.cs
- GroupByQueryOperator.cs
- _SafeNetHandles.cs
- DataRowExtensions.cs
- ExecutorLocksHeldException.cs
- ClientBuildManager.cs
- TemplateGroupCollection.cs
- BatchServiceHost.cs
- ResourceAttributes.cs
- FolderLevelBuildProvider.cs
- ProfileProvider.cs
- ImageCollectionCodeDomSerializer.cs
- TypeSystem.cs
- DataGridDesigner.cs
- Helpers.cs
- ResourceKey.cs
- AnnouncementInnerClient11.cs
- TabControlAutomationPeer.cs
- WindowsIPAddress.cs
- Soap.cs
- EditorReuseAttribute.cs
- LinkTarget.cs
- JulianCalendar.cs
- ProxyWebPartConnectionCollection.cs
- _ProxyRegBlob.cs
- EventProxy.cs
- NamespaceDisplay.xaml.cs
- FormattedText.cs
- XNodeNavigator.cs
- DetailsView.cs
- Parser.cs
- NewArrayExpression.cs
- FixedDocumentPaginator.cs
- MinimizableAttributeTypeConverter.cs
- AnchoredBlock.cs