DekGenius.com
[ Team LiB ] Previous Section Next Section

ReferenceConverter

System.ComponentModel (system.dll)class

This TypeConverter is used in serialization and design-time scenarios to translate to and from reference types. You should not normally call it directly from your own code.

public class ReferenceConverter : TypeConverter {
// Public Constructors
   public ReferenceConverter(Type type);
// Public Instance Methods
   public override bool CanConvertFrom( ITypeDescriptorContext context, Type sourceType);  // overrides TypeConverter
   public override object ConvertFrom(ITypeDescriptorContext context, 
        System.Globalization.CultureInfo culture, object value);  // overrides TypeConverter
   public override object ConvertTo(ITypeDescriptorContext context, 
        System.Globalization.CultureInfo culture, object value, Type destinationType);  // overrides TypeConverter
   public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context);  // overrides TypeConverter
   public override bool GetStandardValuesExclusive(ITypeDescriptorContext context);  // overrides TypeConverter
   public override bool GetStandardValuesSupported(ITypeDescriptorContext context);  // overrides TypeConverter
// Protected Instance Methods
   protected virtual bool IsValueAllowed(ITypeDescriptorContext context, object value);
}

Hierarchy

System.Object TypeConverter ReferenceConverter

Subclasses

ComponentConverter

    [ Team LiB ] Previous Section Next Section