StringExtensions Class
| Namespace | Skybrud.Essentials.Strings.Extensions |
|---|---|
| Assembly | Skybrud.Essentials.dll |
| Visibility | Public |
| Keywords | Static |
| Inheritance | Object |
Static class with various extension methods for String .
public static class StringExtensions { }
Methods
|
CsvToInt(string)
(static)
Converts a comma separated string into an array of integers. |
|
FirstCharToUpper(string)
(static)
Uppercases the first character of a the specified |
|
HasValue(string)
(static)
Gets whether the |
|
HasValue(string, out string)
(static)
Gets whether the This method may be use to improve the readability of your code - eg. instead of declaring a variable first, and then calling |
|
Highlights specified |
|
Highlights specified |
|
HtmlDecode(string)
(static)
HTML decodes the specified |
|
HtmlEncode(string)
(static)
HTML encodes the specified |
|
IsAlphabetic(string)
(static)
Returns whether the specified |
|
IsAlphanumeric(string)
(static)
Gets whether the specified |
|
IsBoolean(string, out bool)
(static)
Tries to convert the specified string representation of a logical value to its bool equivalent. |
|
IsDouble(string)
(static)
Gets whether the string matches a double (Double ). |
|
IsDouble(string, out double)
(static)
Gets whether the string matches a double (Double ). |
|
IsFloat(string)
(static)
Gets whether the string matches a float (Single ). |
|
IsFloat(string, out float)
(static)
Gets whether the string matches a float (Single ). |
|
IsGuid(string)
(static)
Gets whether the string matches a GUID (Guid ). |
|
IsGuid(string, out Guid)
(static)
Gets whether the specified |
|
IsInt32(string)
(static)
Gets whether the string matches an integer (int ). |
|
IsInt32(string, out int)
(static)
Returns whether the specified |
|
IsInt64(string)
(static)
Gets whether the string matches a long (long ). |
|
IsInt64(string, out long)
(static)
Returns whether the specified |
|
IsInteger(string)
(static)
Alias of |
|
IsNullOrWhiteSpace(string)
(static)
Gets whether the |
|
IsNumeric(string)
(static)
Returns whether the specified |
|
ParseBoolean(string, bool)
(static)
Converts |
|
ParseInt32Array(string)
(static)
Parses a comma separated string into an array of int . |
|
ParseInt64Array(string)
(static)
Parses a comma separated string into an array of long . |
|
ReplaceLineBreaks(string)
(static)
HTML encodes the text and replaces text line breaks with HTML line breaks. |
|
StripHtml(string)
(static)
Strips all HTML elements from the specified |
|
StripHtml(string, String[])
(static)
Strips all HTML elements from the specified |
|
ToBoolean(string)
(static)
Converts |
|
ToCamelCase(string)
(static)
Converts the specified |
|
ToCamelCase(Enum)
(static)
Converts the name of the specified enum |
|
ToCasing(Enum, TextCasing)
(static)
Converts the specified enum |
|
ToCasing(string, TextCasing)
(static)
Converts the specified |
|
ToDouble(string)
(static)
Converts |
|
ToDouble(string, double)
(static)
Converts |
|
ToDoubleArray(string)
(static)
Parses a string of numeric values into an array of Double . Values in the list that can't be converted to Double will be ignored. |
|
ToDoubleArray(string, Char[])
(static)
Parses a string of numeric values into an array of Double . Values in the list that can't be converted to Double will be ignored. |
|
ToFloat(string)
(static)
Converts |
|
ToFloat(string, float)
(static)
Converts |
|
ToFloatArray(string)
(static)
Parses a string of numeric values into an array of Single . Values in the list that can't be converted to Single will be ignored. |
|
ToFloatArray(string, Char[])
(static)
Parses a string of numeric values into an array of Single . Values in the list that can't be converted to Single will be ignored. |
|
ToGuid(string)
(static)
Parses |
|
ToGuid(string, Guid)
(static)
Parses |
|
ToGuidArray(string)
(static)
Parses a string of multiple GUIDs into an array of Guid . Supported separators are
comma ( Values in |
|
ToGuidArray(string, Char[])
(static)
Parses string of multiple GUIDs into an array of Guid , using the specified array of
Values in |
|
ToInt32(string, Guid)
(static)
Naming of this method is wrong. Use the |
|
ToInt32(string)
(static)
Converts |
|
ToInt32(string, int)
(static)
Converts |
|
ToInt32Array(string)
(static)
Parses a string of numeric values into an array of int . Values in the list that can't be converted to int will be ignored. |
|
ToInt32Array(string, Char[])
(static)
Parses a string of numeric values into an array of int . Values in the list that can't be converted to int will be ignored. |
|
ToInt64(string)
(static)
Converts |
|
ToInt64(string, long)
(static)
Converts |
|
ToInt64Array(string)
(static)
Parses a string of numeric values into an array of long . Values in the list that can't be converted to long will be ignored. |
|
ToInt64Array(string, Char[])
(static)
Parses a string of numeric values into an array of long . Values in the list that can't be converted to long will be ignored. |
|
ToKebabCase(string)
(static)
Converts the specified |
|
ToKebabCase(Enum)
(static)
Converts the name of the specified enum |
|
ToLower(Enum)
(static)
Converts the specified enum |
|
ToPascalCase(string)
(static)
Converts the specified |
|
ToPascalCase(Enum)
(static)
Converts the name of the specified enum |
|
ToTrainCase(string)
(static)
Converts the specified |
|
ToTrainCase(Enum)
(static)
Converts the name of the specified enum |
|
ToUnderscore(string)
(static)
Converts the specified |
|
ToUnderscore(Enum)
(static)
Converts the specified enum |
|
ToUpper(Enum)
(static)
Converts the specified enum |
|
UrlDecode(string)
(static)
Decodes a URL string. |
|
UrlEncode(string)
(static)
Encodes a URL string. |
|
WordCount(string)
(static)
Counts number of words in the specified |