C# 클래스 ComponentFactory.Krypton.Toolkit.StringLookupConverter

Helper base class used to convert from to/from a table of value,string pairs.
상속: System.ComponentModel.EnumConverter
파일 보기 프로젝트 열기: Cocotteseb/Krypton

공개 메소드들

메소드 설명
ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object

Converts the given object to the type of this converter, using the specified context and culture information.

ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object

Converts the given value object to the specified type, using the specified context and culture information.

StringLookupConverter ( Type enumType ) : System

Initialize a new instance of the StringLookupConverter clas.

메소드 상세

ConvertFrom() 공개 메소드

Converts the given object to the type of this converter, using the specified context and culture information.
public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
context ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
culture System The CultureInfo to use as the current culture.
value object The Object to convert.
리턴 object

ConvertTo() 공개 메소드

Converts the given value object to the specified type, using the specified context and culture information.
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
culture System A CultureInfo object. If a null reference the current culture is assumed.
value object The Object to convert.
destinationType System.Type The Type to convert the value parameter to.
리턴 object

StringLookupConverter() 공개 메소드

Initialize a new instance of the StringLookupConverter clas.
public StringLookupConverter ( Type enumType ) : System
enumType System.Type
리턴 System