C# Class NAnt.Core.LevelConverter

Specialized EnumConverter for Level that ignores case when converting from string.
Inheritance: System.ComponentModel.EnumConverter
显示文件 Open project: skolima/NAnt

Public Methods

Method Description
ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

Converts the given object to the type of this converter, using the specified context and culture information.

LevelConverter ( ) : System

Initializes a new instance of the LevelConverter class.

Method Details

ConvertFrom() public method

Converts the given object to the type of this converter, using the specified context and culture information.
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext An that provides a format context.
culture System.Globalization.CultureInfo A object. If a is passed, the current culture is assumed.
value object The to convert.
return object

LevelConverter() public method

Initializes a new instance of the LevelConverter class.
public LevelConverter ( ) : System
return System