TypeConverterAttribute

TypeConverterAttribute

System.ComponentModel (system.dll) sealed class

You can adorn a class or property with this attribute to bind it to a particular TypeConverter class. The framework then uses this converter to attempt to translate a user -defined type that it doesn't understand into one that it does.

You can get the type name of the converter with the ConverterTypeName property.

 public sealed class  TypeConverterAttribute  : Attribute {  // Public Constructors  public  TypeConverterAttribute  ();    public  TypeConverterAttribute  (string  typeName  );    public  TypeConverterAttribute  (Type  type  );  // Public Static Fields  public static readonly TypeConverterAttribute  Default  ;  // =System.ComponentModel.TypeConverterAttribute   // Public Instance Properties  public string  ConverterTypeName  {get; }  // Public Instance Methods  public override bool  Equals  (object  obj  );  // overrides Attribute  public override int  GetHashCode  ();  // overrides Attribute  } 

Hierarchy

System.Object System.Attribute TypeConverterAttribute

Valid On

All



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net