C# Класс YAMP.Converter.ValueConverterAttribute

Abstract base class for any value converter.
Наследование: System.Attribute
Показать файл Открыть проект

Открытые методы

Метод Описание
CanConvertFrom ( Value argument ) : bool

Indicates if a given argument can be converted.

Convert ( Value argument ) : object

Converts the given value to a standard CLR type.

ValueConverterAttribute ( Type expected ) : System

Creates a new instance.

ValueConverterAttribute ( Type expected, object>.Func converter ) : System

Creates a new instance.

Описание методов

CanConvertFrom() публичный Метод

Indicates if a given argument can be converted.
public CanConvertFrom ( Value argument ) : bool
argument Value The value to convert.
Результат bool

Convert() публичный Метод

Converts the given value to a standard CLR type.
public Convert ( Value argument ) : object
argument Value The value to convert.
Результат object

ValueConverterAttribute() публичный Метод

Creates a new instance.
public ValueConverterAttribute ( Type expected ) : System
expected System.Type The expected type (target)
Результат System

ValueConverterAttribute() публичный Метод

Creates a new instance.
public ValueConverterAttribute ( Type expected, object>.Func converter ) : System
expected System.Type The expected type (target).
converter object>.Func The conversion function.
Результат System