C# Class Spring.Globalization.Formatters.BooleanFormatter

Implementation of IFormatter that can be used to format and parse boolean values.
Inheritance: IFormatter
显示文件 Open project: spring-projects/spring-net

Public Methods

Method Description
BooleanFormatter ( ) : System

Initializes a new instance of the BooleanFormatter class using default values

BooleanFormatter ( bool ignoreCase, string trueString, string falseString ) : System

Initializes a new instance of the BooleanFormatter class

Format ( object value ) : string

Formats the specified boolean value.

Parse ( string value ) : object

Parses the specified boolean value according to settings of TrueString and FalseString

Method Details

BooleanFormatter() public method

Initializes a new instance of the BooleanFormatter class using default values
public BooleanFormatter ( ) : System
return System

BooleanFormatter() public method

Initializes a new instance of the BooleanFormatter class
public BooleanFormatter ( bool ignoreCase, string trueString, string falseString ) : System
ignoreCase bool
trueString string
falseString string
return System

Format() public method

Formats the specified boolean value.
If is null. If is not of type .
public Format ( object value ) : string
value object The value to format.
return string

Parse() public method

Parses the specified boolean value according to settings of TrueString and FalseString
If does not match or .
public Parse ( string value ) : object
value string The boolean value to parse.
return object