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
- SplashScreen.cs
- StorageMappingItemLoader.cs
- DefaultObjectMappingItemCollection.cs
- ClientBuildManager.cs
- CurrencyManager.cs
- XmlUnspecifiedAttribute.cs
- BindingValueChangedEventArgs.cs
- ToolStripCollectionEditor.cs
- SecurityKeyUsage.cs
- StaticSiteMapProvider.cs
- FontResourceCache.cs
- DependencyObjectCodeDomSerializer.cs
- Compiler.cs
- XmlReflectionMember.cs
- StorageFunctionMapping.cs
- RegexCode.cs
- XmlQualifiedNameTest.cs
- ISO2022Encoding.cs
- CustomTypeDescriptor.cs
- ResolveDuplex11AsyncResult.cs
- FileDialog_Vista_Interop.cs
- ExpandCollapseIsCheckedConverter.cs
- WorkflowServiceBuildProvider.cs
- ButtonPopupAdapter.cs
- unitconverter.cs
- EventSinkHelperWriter.cs
- ControlAdapter.cs
- WebPartConnectionsEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- TextFormatterHost.cs
- Group.cs
- GcSettings.cs
- DynamicPropertyHolder.cs
- IndentTextWriter.cs
- SoapReflectionImporter.cs
- AutomationPropertyInfo.cs
- CollectionContainer.cs
- PropertyGridEditorPart.cs
- WindowsIdentity.cs
- XmlSchemaExternal.cs
- UITypeEditor.cs
- OnOperation.cs
- Speller.cs
- BamlResourceDeserializer.cs
- CompilerParameters.cs
- OrderByExpression.cs
- XmlSchema.cs
- RegistryPermission.cs
- UpdateCommandGenerator.cs
- WebPartTransformer.cs
- documentsequencetextview.cs
- TCPClient.cs
- ObjectViewFactory.cs
- Utilities.cs
- NodeInfo.cs
- ToolStripPanelRow.cs
- DataGridCaption.cs
- HttpCacheVaryByContentEncodings.cs
- FrameSecurityDescriptor.cs
- AssertUtility.cs
- BitmapEffect.cs
- ScriptResourceDefinition.cs
- fixedPageContentExtractor.cs
- CodeDirectoryCompiler.cs
- RoamingStoreFile.cs
- WhiteSpaceTrimStringConverter.cs
- DataSourceCacheDurationConverter.cs
- FontEmbeddingManager.cs
- ListManagerBindingsCollection.cs
- CompatibleIComparer.cs
- BasicBrowserDialog.designer.cs
- IIS7UserPrincipal.cs
- UserPreferenceChangedEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- IdleTimeoutMonitor.cs
- DataRowView.cs
- PointHitTestResult.cs
- UserPrincipalNameElement.cs
- BufferBuilder.cs
- Root.cs
- BuilderElements.cs
- StrongNameMembershipCondition.cs
- BamlLocalizer.cs
- HtmlHistory.cs
- FormViewUpdateEventArgs.cs
- ListViewItemSelectionChangedEvent.cs
- AssertFilter.cs
- GorillaCodec.cs
- CalendarItem.cs
- BigInt.cs
- CompleteWizardStep.cs
- WebZone.cs
- SerializationInfoEnumerator.cs
- Point4D.cs
- BitmapEffectDrawingContextWalker.cs
- CodeSubDirectoriesCollection.cs
- QilReplaceVisitor.cs
- BinaryUtilClasses.cs
- BitmapFrameEncode.cs
- CacheMemory.cs