C# Класс Spring.Globalization.Formatters.BooleanFormatter

Implementation of IFormatter that can be used to format and parse boolean values.
Наследование: IFormatter
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

BooleanFormatter() публичный Метод

Initializes a new instance of the BooleanFormatter class using default values
public BooleanFormatter ( ) : System
Результат System

BooleanFormatter() публичный Метод

Initializes a new instance of the BooleanFormatter class
public BooleanFormatter ( bool ignoreCase, string trueString, string falseString ) : System
ignoreCase bool
trueString string
falseString string
Результат System

Format() публичный Метод

Formats the specified boolean value.
If is null. If is not of type .
public Format ( object value ) : string
value object The value to format.
Результат string

Parse() публичный Метод

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.
Результат object