C# Class Summer.Batch.Extra.Utils.ReverseUtils

Reverse Helper.
显示文件 Open project: SummerBatch/SummerBatch

Public Methods

Method Description
ConvertBooleanToStringON ( bool boolean ) : string

Convert a bool to "O" or "N" string.

ConvertBooleanToStringYN ( bool boolean ) : string

Convert a bool to "Y" or "N" string.

ConvertStringToBooleanON ( string str ) : bool?

Convert a "O" or "N" string to bool.

ConvertStringToBooleanYN ( string str ) : bool?

Convert a "Y" or "N" string to bool.

IsCharHighValue ( char character ) : bool

Check if the given character is '\\u009F' ASCII value.

IsCharLowValue ( char character ) : bool

Check if the given character is '\\u0000' ASCII value.

IsSpaces ( object obj ) : bool

Check if all attributes of the object, whose types are Number, String or Date, are null or are empty/whitespace strings.

IsStringHighValue ( string str ) : bool

Check if characters of the given string are all '\\u009F' ASCII value.

IsStringLowValue ( string str ) : bool

Check if characters of the given string are all '\\u0000' ASCII value.

Private Methods

Method Description
IsAttribute ( Type clazz ) : bool

isAttribute.

IsAttributeNull ( MethodInfo m, object obj ) : bool

isAttributeNull.

IsMethodToBeIgnored ( MethodInfo m ) : bool

IsMethodToBeIgnored.

Method Details

ConvertBooleanToStringON() public static method

Convert a bool to "O" or "N" string.
public static ConvertBooleanToStringON ( bool boolean ) : string
boolean bool bool
return string

ConvertBooleanToStringYN() public static method

Convert a bool to "Y" or "N" string.
public static ConvertBooleanToStringYN ( bool boolean ) : string
boolean bool bool
return string

ConvertStringToBooleanON() public static method

Convert a "O" or "N" string to bool.
public static ConvertStringToBooleanON ( string str ) : bool?
str string string
return bool?

ConvertStringToBooleanYN() public static method

Convert a "Y" or "N" string to bool.
public static ConvertStringToBooleanYN ( string str ) : bool?
str string string
return bool?

IsCharHighValue() public static method

Check if the given character is '\\u009F' ASCII value.
public static IsCharHighValue ( char character ) : bool
character char character char
return bool

IsCharLowValue() public static method

Check if the given character is '\\u0000' ASCII value.
public static IsCharLowValue ( char character ) : bool
character char char
return bool

IsSpaces() public static method

Check if all attributes of the object, whose types are Number, String or Date, are null or are empty/whitespace strings.
public static IsSpaces ( object obj ) : bool
obj object objet
return bool

IsStringHighValue() public static method

Check if characters of the given string are all '\\u009F' ASCII value.
public static IsStringHighValue ( string str ) : bool
str string string
return bool

IsStringLowValue() public static method

Check if characters of the given string are all '\\u0000' ASCII value.
public static IsStringLowValue ( string str ) : bool
str string string
return bool