The StringExtension type exposes the following members.

Methods

  Name Description
Public method Static member ConvertToEncoding(String, String, String)
Converts text from one encoding to another - must be used with Ajax since it doesn't support encodings other than utf-8.
Public method Static member ConvertToEncoding(String, Encoding, Encoding)
Converts text from one encoding to another - must be used with Ajax since it doesn't support encodings other than utf-8.
Public method Static member FormatWith(String, Object)
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used: string.Format("{pi} first, {date} second", someObj) Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
Public method Static member FormatWith(String, IFormatProvider, Object)
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used: string.Format("{pi} first, {date} second", someObj) Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
Public method Static member FormatWith(String, IFormatProvider, Object, String)
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used: string.Format("{pi} first, {date} second", someObj) Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
Public method Static member FormatWith(String, IFormatProvider, Object, String, Boolean)
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used: string.Format("{pi} first, {date} second", someObj) Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
Public method Static member FormatWith(String, IFormatProvider, Object, String, Char, Char)
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used: string.Format("{pi} first, {date} second", someObj) Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
Public method Static member FormatWith(String, IFormatProvider, Object, String, Char, Char, Boolean)
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used: string.Format("{pi} first, {date} second", someObj) Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
Public method Static member GetPhrases
Gets the phrases from the provided text.
Public method Static member Match(String, String)
Returns true if the string matches the pattern which may contain * and ? wildcards. Matching is done without regard to case.
Public method Static member Match(String, String, Boolean)
Returns true if the string matches the pattern which may contain * and ? wildcards.
Public method Static member Replace
Performs advanced string replace (including StringComparison for case insensitive or invariant culture replace).
Public method Static member Split
Gets a list of items from a specified string that are splited by a separator term.
Public method Static member ToTrimmedWordString
Trims a string to the specified length without breaking words and with applying auto ellipsis character (...) at the end of a trimmed string.
Public method Static member ToUserFriendlyString
Returns nicely formatted string from a Pascal cased string (used for database field names, etc.).

See Also