ContainsAny Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
ContainsAny(IDecorator<string>, StringComparison, params char[])
Returns a value indicating whether the specified values occurs within the enclosed string of the specified decorator object.
public static bool ContainsAny(this IDecorator<string> decorator, StringComparison comparison, params char[] values)
Parameters
decoratorIDecorator<string>The IDecorator<T> to extend.
comparisonStringComparisonOne of the enumeration values that specifies the rules to use in the comparison.
valueschar[]The char sequence to search within the enclosed string of the specified
decorator.
Returns
- bool
trueif thevaluesparameter occurs within the enclosed string of the specifieddecorator; otherwise,false.
Exceptions
- ArgumentNullException
decoratoris null -or-valuesis null.
ContainsAny(IDecorator<string>, char, StringComparison)
Returns a value indicating whether the specified find occurs within the enclosed string of the specified decorator.
public static bool ContainsAny(this IDecorator<string> decorator, char find, StringComparison comparison = StringComparison.OrdinalIgnoreCase)
Parameters
decoratorIDecorator<string>The IDecorator<T> to extend.
findcharThe char to search within enclosed string of the specified
decorator.comparisonStringComparisonOne of the enumeration values that specifies the rules to use in the comparison. Default is OrdinalIgnoreCase.
Returns
- bool
trueif thefindparameter occurs within the enclosed string of the specifieddecorator; otherwise,false.
Exceptions
- ArgumentNullException
decoratoris null -or-findis null.