ContainsAll Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
ContainsAll(string, params string[])
Returns a value indicating whether all of the specified values occurs within the value.
public static bool ContainsAll(this string value, params string[] values)
Parameters
Returns
- bool
trueif all of thevaluesoccurs within thevalue; otherwise,false.
Remarks
This method performs an ordinal (case-insensitive and culture-insensitive) comparison. The search begins at the first character position of this string and continues through the last character position.
ContainsAll(string, StringComparison, params string[])
Returns a value indicating whether all of the specified values occurs within the value.
public static bool ContainsAll(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 all of thevaluesoccurs within thevalue; otherwise,false.
Exceptions
- ArgumentNullException
valueis null -or-valuesis null.