C# Class Nimrod.StringExtensions

显示文件 Open project: resgroup/nimrod

Public Methods

Method Description
HasNonEmbededWhiteSpace ( this text ) : bool

Return true if the string has whitespaces somewhere at the first embeded level

Join ( this values, string separator ) : string

Call string.Join with argument separator

JoinNewLine ( this values ) : string

Call string.Join with argument Environment.NewLine

RemoveBetween ( this rawString, char enter, char exit ) : string

http://stackoverflow.com/a/39096603/128662

Repeat ( this pattern, int count ) : string

Method Details

HasNonEmbededWhiteSpace() public static method

Return true if the string has whitespaces somewhere at the first embeded level
public static HasNonEmbededWhiteSpace ( this text ) : bool
text this
return bool

Join() public static method

Call string.Join with argument separator
public static Join ( this values, string separator ) : string
values this
separator string
return string

JoinNewLine() public static method

Call string.Join with argument Environment.NewLine
public static JoinNewLine ( this values ) : string
values this
return string

RemoveBetween() public static method

http://stackoverflow.com/a/39096603/128662
public static RemoveBetween ( this rawString, char enter, char exit ) : string
rawString this
enter char
exit char
return string

Repeat() public static method

public static Repeat ( this pattern, int count ) : string
pattern this
count int
return string