C# 클래스 CtcApi.Extensions.StringExtensions

Set the EXTRA_VERBOSE build flag to enable Trace-level log output for for members of this class.
파일 보기 프로젝트 열기: BellevueCollege/CtcApi

공개 메소드들

메소드 설명
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