StringHelpers Class

Version 1.1.28
.NET Framework 4.8
This class has been marked as obsolete: Use the StringUtils class instead.
Namespace Skybrud.Essentials.Strings
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Utility class with various static helper methods for working with strings.

[Obsolete("Use the StringUtils class instead.")]
public static class StringHelpers { }

Methods

CsvToInt(string) (static)

Converts a comma separated string into an array of integers.

Uppercases the first character of a the specified str. If str is either null or empty, an empty string will be returned instead.

Parses the specified str into an instance of bool . The string is considered true if it matches either 1, t or true (case insensitive).

Parses the specified value into an instance of bool . The value is considered true if it matches either 1, t or true (case insensitive).

Converts the specified str to camel case (also referred to as lower camel casing).

Converts the name of the specified enum value to a camel cased string.

Converts the specified str to Pascal case (also referred to as upper camel casing).

Converts the name of the specified enum value to a Pascal cased string.

Converts the specified str to a lower case string with words separated by underscores.

Converts the specified enum value to a lower case string with words separated by underscores.

Decodes a URL string.

Encodes a URL string.