C# Class mRemoteNG.Tools.MiscTools.EnumTypeConverter

Inheritance: System.ComponentModel.EnumConverter
显示文件 Open project: mRemoteNG/mRemoteNG

Public Methods

Method 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 method

public CanConvertFrom ( ITypeDescriptorContext context, Type srcType ) : bool
context ITypeDescriptorContext
srcType System.Type
return bool

CanConvertTo() public method

public CanConvertTo ( ITypeDescriptorContext context, Type destType ) : bool
context ITypeDescriptorContext
destType System.Type
return bool

ConvertFrom() public method

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
return object

ConvertTo() public method

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

EnumTypeConverter() public method

public EnumTypeConverter ( Type type ) : System
type System.Type
return System