C# 클래스 Spring.Globalization.Formatters.BooleanFormatter

Implementation of IFormatter that can be used to format and parse boolean values.
상속: IFormatter
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
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