C# Class WhoCanHelpMe.Framework.Extensions.StringExtensions

Extension methods for strings
Afficher le fichier Open project: jongeorge1/Who-Can-Help-Me

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat string

FirstNWords() public static méthode

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

FormatWith() public static méthode

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

IsNullOrEmpty() public static méthode

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

LastNCharacters() public static méthode

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. ///
Résultat string