C# Class Microsoft.Research.DataOnboarding.Utilities.Extensions.StringExtensions

Show file Open project: CDLUC3/dataup2

Public Methods

Method Description
DecodeFrom64 ( this encodedData ) : string

The extension method can be used to decode the base 64 encoded string .

EncodeTo64 ( this toEncode ) : string

The extension method create a Base64 encoded string from a normal string.

IsAlphaNum ( this str ) : bool
IsNumeric ( this str ) : bool
ToDouble ( this strData ) : double

Extension method to convert the string to the double.

ToInt ( this strData ) : int

Extension method to convert the string to the integer.

Method Details

DecodeFrom64() public static method

The extension method can be used to decode the base 64 encoded string .
public static DecodeFrom64 ( this encodedData ) : string
encodedData this The String containing the characters to decode.
return string

EncodeTo64() public static method

The extension method create a Base64 encoded string from a normal string.
public static EncodeTo64 ( this toEncode ) : string
toEncode this The String containing the characters to encode.
return string

IsAlphaNum() public static method

public static IsAlphaNum ( this str ) : bool
str this
return bool

IsNumeric() public static method

public static IsNumeric ( this str ) : bool
str this
return bool

ToDouble() public static method

Extension method to convert the string to the double.
public static ToDouble ( this strData ) : double
strData this String data.
return double

ToInt() public static method

Extension method to convert the string to the integer.
public static ToInt ( this strData ) : int
strData this String data.
return int