C# 클래스 PetShop.Business.GenericTypeConverter

Provides a unified way of converting types of values to other types, as well as for accessing standard values and subproperties. Used by the nettiers strongly typed collection, so they can be saved in ViewState.
상속: System.ComponentModel.TypeConverter
파일 보기 프로젝트 열기: netTiers/netTiers

공개 메소드들

메소드 설명
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Returns whether this converter can convert the object to the specified type.

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

Converts the given value object to the specified type.

GenericTypeConverter ( ) : System

Initializes a new instance of the GenericTypeConverter class.

메소드 상세

CanConvertTo() 공개 메소드

Returns whether this converter can convert the object to the specified type.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
리턴 bool

ConvertTo() 공개 메소드

Converts the given value object to the specified type.
public ConvertTo ( ITypeDescriptorContext context, System culture, object val, Type destinationType ) : object
context ITypeDescriptorContext
culture System
val object
destinationType System.Type
리턴 object

GenericTypeConverter() 공개 메소드

Initializes a new instance of the GenericTypeConverter class.
public GenericTypeConverter ( ) : System
리턴 System