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
Показать файл Открыть проект

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

Метод Описание
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