C# Class Spring.Globalization.Formatters.BooleanFormatter

Implementation of IFormatter that can be used to format and parse boolean values.
Inheritance: IFormatter
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode 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 méthode

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

BooleanFormatter() public méthode

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

Format() public méthode

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

Parse() public méthode

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.
Résultat object