Comparer - IvanStoychev/IvanStoychev.Useful.String.Extensions GitHub Wiki

This is a list of all methods in the "Comparer" class. The class isn't actually accessible from the NuGet package but it is used to logically separate methods for better organization.


Contains (IEnumerable<string> keywords)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the strings in keywords occur in this string.


Contains (params string[] keywords)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the strings in keywords occur in this string.
keywords is specified with the params keyword to make it easy to call this method with a variable number of strings, like so Contains("one", "two", "three", "four", "and", "etc").


Contains (IEnumerable<char> keychars)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the characters in keychars occur in this string.


Contains (params char[] keychars)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the characters in keychars occur in this string.
keychars is specified with the params keyword to make it easy to call this method with a variable number of characters, like so Contains('o', 't', 'e', 'r', 'd', 'c').


Contains (StringComparison comparison, IEnumerable<string> keywords)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the strings in keywords occur in this string, using the specified comparison rules.


Contains (StringComparison comparison, params string[] keywords)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the strings in keywords occur in this string, using the specified comparison rules.
keywords is specified with the params keyword to make it easy to call this method with a variable number of strings, like so Contains(StringComparison.Ordinal, "one", "two", "three", "four", "and", "etc").


Contains (StringComparison comparison, IEnumerable<char> keychars)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the characters in keychars occur in this string.


Contains (StringComparison comparison, params char[] keychars)

Introduced in version 1.0.0


Returns a boolean indicating whether any of the characters in keychars occur in this string, using the specified comparison rules.
keychars is specified with the params keyword to make it easy to call this method with a variable number of characters, like so Contains(StringComparison.Ordinal, 'o', 'q', 'w', 's', 'h', 'x').

⚠️ **GitHub.com Fallback** ⚠️