TypeConverterAttribute Class

Definition

Attribute that specifies the type of TypeConverter used by its target.

[System.AttributeUsage(System.AttributeTargets.All)]
public sealed class TypeConverterAttribute : Attribute
type TypeConverterAttribute = class
    inherit Attribute
Inheritance
System.Attribute
TypeConverterAttribute
Attributes
System.AttributeUsageAttribute

Constructors

TypeConverterAttribute()

Creates a new TypeConverterAttribute with default values.

TypeConverterAttribute(String)

Creates a new TypeConverterAttribute object that specifies that the class it decorates converts values to the typeName type.

TypeConverterAttribute(Type)

reates a new TypeConverterAttribute object that specifies that the class it decorates converts values to type.

Fields

Default

A TypeConverterAttribute that contains no information about the types to which the class that it decorates can convert values.

Properties

ConverterTypeName

The name of the type to which the class decorated with this attribute can convert values.

Methods

Equals(Object)

Returns true if obj is a TypeConverterAttribute and has the same ConverterTypeName value.

GetHashCode()

Returns a value that is used for efficient storage and lookup of this TypeConverterAttribute object.

Applies to