C# Class NuGetGallery.StringExtensions

ファイルを表示 Open project: chocolatey/chocolatey.org

Public Methods

Method Description
clean_html ( this input ) : string
format_with ( this input ) : string

Formats string with the formatting passed in. This is a shortcut to string.Format().

split_safe ( this s, char separator, StringSplitOptions stringSplitOptions ) : string[]
to_lower ( this input ) : string
to_lower_invariant ( this input ) : string
to_string ( this input ) : string

Gets a string representation unless input is null.

Method Details

clean_html() public static method

public static clean_html ( this input ) : string
input this
return string

format_with() public static method

Formats string with the formatting passed in. This is a shortcut to string.Format().
public static format_with ( this input ) : string
input this The input.
return string

split_safe() public static method

public static split_safe ( this s, char separator, StringSplitOptions stringSplitOptions ) : string[]
s this
separator char
stringSplitOptions StringSplitOptions
return string[]

to_lower() public static method

public static to_lower ( this input ) : string
input this
return string

to_lower_invariant() public static method

public static to_lower_invariant ( this input ) : string
input this
return string

to_string() public static method

Gets a string representation unless input is null.
public static to_string ( this input ) : string
input this The input.
return string