C# 클래스 YAMP.Converter.ValueConverterAttribute

Abstract base class for any value converter.
상속: System.Attribute
파일 보기 프로젝트 열기: FlorianRappl/YAMP

공개 메소드들

메소드 설명
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