C# Class Yea.DataTypes.ExtensionMethods.ValueTypeExtensions

Value type extension methods
Datei anzeigen Open project: OxPatient/Rule-Engine

Public Methods

Method Description
IsControl ( this value ) : bool

Is the character a control character

IsDigit ( this value ) : bool

Is the character a digit character

IsHighSurrogate ( this value ) : bool

Is the character a high surrogate character

IsLetter ( this value ) : bool

Is the character a letter character

IsLetterOrDigit ( this value ) : bool

Is the character a letter or digit character

IsLowSurrogate ( this value ) : bool

Is the character a low surrogate character

IsLower ( this value ) : bool

Is the character a lower case character

IsNumber ( this value ) : bool

Is the character a number character

IsPunctuation ( this value ) : bool

Is the character a punctuation character

IsSurrogate ( this value ) : bool

Is the character a surrogate character

IsSymbol ( this value ) : bool

Is the character a symbol character

IsUnicode ( this input ) : bool

Determines if a byte array is unicode

IsUpper ( this value ) : bool

Is the character an upper case character

IsWhiteSpace ( this value ) : bool

Is the character a whitespace character

ToBase64String ( this input ) : string

Converts a byte array into a base 64 string

ToBool ( this input ) : bool

Turns an int into a bool

ToEncodedString ( this input, Encoding encodingUsing = null, int index, int count = -1 ) : string

Converts a byte array to a string

ToInt ( this value ) : int

Converts the bool to an integer

Method Details

IsControl() public static method

Is the character a control character
public static IsControl ( this value ) : bool
value this Value to check
return bool

IsDigit() public static method

Is the character a digit character
public static IsDigit ( this value ) : bool
value this Value to check
return bool

IsHighSurrogate() public static method

Is the character a high surrogate character
public static IsHighSurrogate ( this value ) : bool
value this Value to check
return bool

IsLetter() public static method

Is the character a letter character
public static IsLetter ( this value ) : bool
value this Value to check
return bool

IsLetterOrDigit() public static method

Is the character a letter or digit character
public static IsLetterOrDigit ( this value ) : bool
value this Value to check
return bool

IsLowSurrogate() public static method

Is the character a low surrogate character
public static IsLowSurrogate ( this value ) : bool
value this Value to check
return bool

IsLower() public static method

Is the character a lower case character
public static IsLower ( this value ) : bool
value this Value to check
return bool

IsNumber() public static method

Is the character a number character
public static IsNumber ( this value ) : bool
value this Value to check
return bool

IsPunctuation() public static method

Is the character a punctuation character
public static IsPunctuation ( this value ) : bool
value this Value to check
return bool

IsSurrogate() public static method

Is the character a surrogate character
public static IsSurrogate ( this value ) : bool
value this Value to check
return bool

IsSymbol() public static method

Is the character a symbol character
public static IsSymbol ( this value ) : bool
value this Value to check
return bool

IsUnicode() public static method

Determines if a byte array is unicode
public static IsUnicode ( this input ) : bool
input this Input array
return bool

IsUpper() public static method

Is the character an upper case character
public static IsUpper ( this value ) : bool
value this Value to check
return bool

IsWhiteSpace() public static method

Is the character a whitespace character
public static IsWhiteSpace ( this value ) : bool
value this Value to check
return bool

ToBase64String() public static method

Converts a byte array into a base 64 string
public static ToBase64String ( this input ) : string
input this Input array
return string

ToBool() public static method

Turns an int into a bool
public static ToBool ( this input ) : bool
input this Int value
return bool

ToEncodedString() public static method

Converts a byte array to a string
public static ToEncodedString ( this input, Encoding encodingUsing = null, int index, int count = -1 ) : string
input this input array
encodingUsing System.Text.Encoding The type of encoding the string is using (defaults to UTF8)
index int Index to start at
count int Number of bytes starting at the index to convert (use -1 for the entire array starting at the index)
return string

ToInt() public static method

Converts the bool to an integer
public static ToInt ( this value ) : int
value this Value to convert
return int