C# Класс CtcApi.Extensions.StringExtensions

Set the EXTRA_VERBOSE build flag to enable Trace-level log output for for members of this class.
Показать файл Открыть проект

Открытые методы

Метод Описание
CombinePath ( this src ) : string

Combines two or more strings into a valid file/folder path.

CombineUrl ( this src ) : string

Combines two or more strings into a URL.

IsInt ( this value ) : bool

Identifies whether or not a string can be converted to an int

IsNumber ( this value ) : bool

Identifies whether or not a string can be converted to a number

Mash ( this src, string seperator = "," ) : string

Joins an array of strings into one.

Nullify ( this value ) : string

Converts an empty String to null

SafeToInt32 ( this value, int defaultValue ) : int

Safely converts a string to an int.

TitleCase ( this src ) : string

Capitalizes the first letter of each word in the string.

See http://tiny.cc/wzawkw

This method has no affect on strings that are already upper case. Set the EXTRA_VERBOSE build flag to enable Trace-level log output.
ToFile ( this str, string filename ) : bool

Saves the string to a file.

Описание методов

CombinePath() публичный статический Метод

Combines two or more strings into a valid file/folder path.
public static CombinePath ( this src ) : string
src this
Результат string

CombineUrl() публичный статический Метод

Combines two or more strings into a URL.
public static CombineUrl ( this src ) : string
src this
Результат string

IsInt() публичный статический Метод

Identifies whether or not a string can be converted to an int
public static IsInt ( this value ) : bool
value this The to evaluate.
Результат bool

IsNumber() публичный статический Метод

Identifies whether or not a string can be converted to a number
public static IsNumber ( this value ) : bool
value this The to evaluate.
Результат bool

Mash() публичный статический Метод

Joins an array of strings into one.
public static Mash ( this src, string seperator = "," ) : string
src this
seperator string
Результат string

Nullify() публичный статический Метод

Converts an empty String to null
public static Nullify ( this value ) : string
value this The to evaluate.
Результат string

SafeToInt32() публичный статический Метод

Safely converts a string to an int.
public static SafeToInt32 ( this value, int defaultValue ) : int
value this
defaultValue int A default value to return if the cannot be converted to an int.
Результат int

TitleCase() публичный статический Метод

Capitalizes the first letter of each word in the string.

See http://tiny.cc/wzawkw

This method has no affect on strings that are already upper case. Set the EXTRA_VERBOSE build flag to enable Trace-level log output.
public static TitleCase ( this src ) : string
src this
Результат string

ToFile() публичный статический Метод

Saves the string to a file.
public static ToFile ( this str, string filename ) : bool
str this
filename string
Результат bool