Name
TypeConverterAttribute
Synopsis
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
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.