C# Class Rsdn.Janus.EnumTypeConverter

TypeConverter для енумов, преобразовывающий енумы к строке с учетом атрибута DisplayName
Inheritance: System.ComponentModel.EnumConverter
Afficher le fichier Open project: rsdn/janus

Méthodes publiques

Méthode Description
CanConvertFrom ( ITypeDescriptorContext context, Type srcType ) : bool
CanConvertTo ( ITypeDescriptorContext context, Type destType ) : bool
ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destType ) : object
EnumTypeConverter ( Type type ) : System

Инициализирует экземпляр

Method Details

CanConvertFrom() public méthode

public CanConvertFrom ( ITypeDescriptorContext context, Type srcType ) : bool
context ITypeDescriptorContext
srcType System.Type
Résultat bool

CanConvertTo() public méthode

public CanConvertTo ( ITypeDescriptorContext context, Type destType ) : bool
context ITypeDescriptorContext
destType System.Type
Résultat bool

ConvertFrom() public méthode

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
Résultat object

ConvertTo() public méthode

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destType System.Type
Résultat object

EnumTypeConverter() public méthode

Инициализирует экземпляр
public EnumTypeConverter ( Type type ) : System
type System.Type тип енума
Résultat System