C# Class WhoCanHelpMe.Framework.Extensions.StringExtensions

Extension methods for strings
Datei anzeigen Open project: jongeorge1/Who-Can-Help-Me

Public Methods

Method Description
FirstNCharacters ( this theString, int index ) : string

Retuns the frist N Characters of a string

FirstNWords ( this theString, int numWords ) : string

Firsts the N words.

FormatWith ( this theString ) : string

Formats a string with the specified args

IsNullOrEmpty ( this theString ) : bool

Switches the IsNullOrEmpty to a more readable format

LastNCharacters ( this theString, int index ) : string

Returns the last N Characters of a string.

"Hello World ".LastNCharacters(5) returns "World"

Method Details

FirstNCharacters() public static method

Retuns the frist N Characters of a string
///
public static FirstNCharacters ( this theString, int index ) : string
theString this /// The the string. ///
index int /// The index. ///
return string

FirstNWords() public static method

Firsts the N words.
public static FirstNWords ( this theString, int numWords ) : string
theString this The string.
numWords int The num words.
return string

FormatWith() public static method

Formats a string with the specified args
public static FormatWith ( this theString ) : string
theString this /// The the string. ///
return string

IsNullOrEmpty() public static method

Switches the IsNullOrEmpty to a more readable format
public static IsNullOrEmpty ( this theString ) : bool
theString this /// The the string. ///
return bool

LastNCharacters() public static method

Returns the last N Characters of a string.
"Hello World ".LastNCharacters(5) returns "World"
///
public static LastNCharacters ( this theString, int index ) : string
theString this /// The the string. ///
index int /// The index. ///
return string