EqualsAny Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
EqualsAny(string, params string[])
Returns a value indicating the specified value equals one of the specified values.
public static bool EqualsAny(this string value, params string[] values)
Parameters
Returns
- bool
trueif one thevaluesis the same as thevalue; otherwisefalse.
Remarks
This method performs an ordinal (case-sensitive and culture-insensitive) comparison. The search begins at the first character position of this string and continues through the last character position.
Exceptions
- ArgumentNullException
valueis null - or -valuesis null.
EqualsAny(string, StringComparison, params string[])
Returns a value indicating the specified value equals one of the specified values.
public static bool EqualsAny(this string value, StringComparison comparison, params string[] values)
Parameters
valuestringThe string to extend.
comparisonStringComparisonOne of the enumeration values that specifies the rules to use in the comparison.
valuesstring[]The string sequence to search within
value.
Returns
- bool
trueif one thevaluesis the same as thevalue; otherwisefalse.