C# Class Microsoft.VisualStudio.R.Package.Options.R.Tools.LogLevelTypeConverter

Inheritance: System.ComponentModel.TypeConverter
Mostra file Open project: Microsoft/RTVS

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

Converts logging level name to the enumerated value

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

Converts logging level to a user-friendly display name

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
LogLevelTypeConverter ( ) : System

Private Methods

Method Description
Convert ( object value ) : object
ConvertToLevel ( string name ) : int?
ConvertToName ( int level ) : string

Method Details

CanConvertFrom() public method

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

CanConvertTo() public method

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

ConvertFrom() public method

Converts logging level name to the enumerated value
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
return object

ConvertTo() public method

Converts logging level to a user-friendly display name
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
return object

GetStandardValues() public method

public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
return StandardValuesCollection

GetStandardValuesSupported() public method

public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
return bool

LogLevelTypeConverter() public method

public LogLevelTypeConverter ( ) : System
return System