Class StringExtensions
Inheritance
StringExtensions
Assembly: Neon.Common.dll
Syntax
public static class StringExtensions
Methods
GetHashCodeIgnoringWhitespace(string, bool)
Gets the hash code for a string, optionally ignoring case.
Declaration
public static int GetHashCodeIgnoringWhitespace(this string obj, bool ignoreCase = false)
Parameters
Returns
IsNullOrEmpty(string)
Extension method for checking if a string is null or empty.
Declaration
public static bool IsNullOrEmpty(this string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
IsNullOrWhiteSpace(string)
Extension method for checking if a string is null or whitespace.
Declaration
public static bool IsNullOrWhiteSpace(this string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
ToLines(string)
Splits the string into lines of text.
Declaration
public static IEnumerable<string> ToLines(this string value)
Parameters
Type |
Name |
Description |
string |
value |
The string value.
|
Returns
Type |
Description |
IEnumerable<string> |
An IEnumerable<T> with the extracted lines. Note
that an empty string will return a single empty line and a null
string will return no lines.
|