C# 클래스 DevUtils.PrimitivesExtensions.BoolExtensions

Static bool extension
파일 보기 프로젝트 열기: jornfilho/.net-Dev-Utils

공개 메소드들

메소드 설명
IsValidBool ( this strValue ) : bool

Test if string value is a valid boolean value

TryParseBool ( this strValue ) : bool

Try parse string bool (true,false,0,1) to boolean value

Default value is false

TryParseBool ( this strValue, bool defaultValue ) : bool

Try parse string bool (true,false,0,1) to boolean value

TryParseBoolArray ( this strValue ) : bool[]

Parse string array in bool array

TryParseBoolArray ( this strValue, bool defaultValue ) : bool[]

Parse string array in bool array

TryParseBoolArray ( this strValue, bool defaultValue, bool allowDefaultConversion ) : bool[]

Parse string array in bool array

메소드 상세

IsValidBool() 공개 정적인 메소드

Test if string value is a valid boolean value
public static IsValidBool ( this strValue ) : bool
strValue this string value
리턴 bool

TryParseBool() 공개 정적인 메소드

Try parse string bool (true,false,0,1) to boolean value

Default value is false

public static TryParseBool ( this strValue ) : bool
strValue this string to convert
리턴 bool

TryParseBool() 공개 정적인 메소드

Try parse string bool (true,false,0,1) to boolean value

public static TryParseBool ( this strValue, bool defaultValue ) : bool
strValue this string to convert
defaultValue bool default return value
리턴 bool

TryParseBoolArray() 공개 정적인 메소드

Parse string array in bool array
public static TryParseBoolArray ( this strValue ) : bool[]
strValue this string to parse
리턴 bool[]

TryParseBoolArray() 공개 정적인 메소드

Parse string array in bool array
public static TryParseBoolArray ( this strValue, bool defaultValue ) : bool[]
strValue this string to parse
defaultValue bool default value when default tryparse
리턴 bool[]

TryParseBoolArray() 공개 정적인 메소드

Parse string array in bool array
public static TryParseBoolArray ( this strValue, bool defaultValue, bool allowDefaultConversion ) : bool[]
strValue this string to parse
defaultValue bool default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
리턴 bool[]