KGy SOFT

StringExtensions Class

KGy SOFT Core Libraries Help
Contains extension methods for the string type.
Inheritance Hierarchy

SystemObject
  KGySoft.CoreLibrariesStringExtensions

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class StringExtensions

The StringExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberContains
Gets whether the specified string s contains the specified value using the specified comparison.
Public methodStatic memberContainsAny(String, String)
Gets whether the specified String s contains any of the strings in the specified set by case sensitive ordinal comparison.
Public methodStatic memberContainsAny(String, StringComparison, String)
Gets whether the specified String s contains any of the strings in the specified set set using a specific comparison.
Public methodStatic memberEqualsAny(String, String)
Gets whether the specified string s equals any of the strings in the specified set set by case sensitive ordinal comparison.
Public methodStatic memberEqualsAny(String, StringComparer, String)
Gets whether the specified string s equals any of the strings in the specified set set using a specific comparer.
Public methodStatic memberEqualsAny(String, StringComparison, String)
Gets whether the specified String s equals any of the strings in the specified set set using a specific comparison.
Public methodStatic memberIndexOfAny(String, String)
Gets the zero-based index of the first occurrence in the specified String s of any of the strings in the specified set by case sensitive ordinal comparison.
Public methodStatic memberIndexOfAny(String, StringComparison, String)
Gets the zero-based index of the first occurrence in the specified String s of any of the strings in the specified set using a specific comparison.
Public methodStatic memberParse(String, Type, CultureInfo)
Parses an object from a String value. Firstly, it tries to parse the type natively. If type cannot be parsed natively but the type has a TypeConverter or a registered conversion that can convert from string, then the type converter or conversion will be used.
See the Remarks section of the ParseT(String, CultureInfo) overload for details.
Public methodStatic memberParseT(String, CultureInfo)
Parses an object of type T from a String value. Firstly, it tries to parse the type natively. If T cannot be parsed natively but the type has a TypeConverter or a registered conversion that can convert from string, then the type converter or conversion will be used.
See the Remarks section for details.
Public methodStatic memberParseDecimalBytes
Parses separated decimal bytes from a string.
Public methodStatic memberParseHexBytes(String)
Parses a continuous hex stream from a string.
Public methodStatic memberParseHexBytes(String, String)
Parses delimited hex values from a string into an array of bytes.
Public methodStatic memberRemoveQuotes
Extracts content of a single or double quoted string.
Public methodStatic memberRepeat
Repeats a String count times.
Public methodStatic memberToEnumTEnum
Tries to convert the specified string to an Enum value of TEnum type.
Public methodStatic memberToWildcardsRegex
Converts the passed string to a Regex that matches wildcard characters (? and *).
Public methodStatic memberTryParse(String, Type, Object)
Tries to parse an object of type type from a String value. Firstly, it tries to parse the type natively. If type cannot be parsed natively but the type has a TypeConverter or a registered conversion that can convert from string, then the type converter or conversion will be used.
See the Remarks section of the ParseT(String, CultureInfo) method for details.
Public methodStatic memberTryParse(String, Type, CultureInfo, Object)
Tries to parse an object of type type from a String value. Firstly, it tries to parse the type natively. If type cannot be parsed natively but the type has a TypeConverter or a registered conversion that can convert from string, then the type converter or conversion will be used.
See the Remarks section of the ParseT(String, CultureInfo) method for details.
Public methodStatic memberTryParseT(String, T)
Tries to parse an object of type T from a String value. Firstly, it tries to parse the type natively. If T cannot be parsed natively but the type has a TypeConverter or a registered conversion that can convert from string, then the type converter or conversion will be used.
See the Remarks section of the ParseT(String, CultureInfo) method for details.
Public methodStatic memberTryParseT(String, CultureInfo, T)
Tries to parse an object of type T from a String value. Firstly, it tries to parse the type natively. If T cannot be parsed natively but the type has a TypeConverter or a registered conversion that can convert from string, then the type converter or conversion will be used.
See the Remarks section of the ParseT(String, CultureInfo) method for details.
Top
See Also

Reference