Table of Contents

ContainsAll Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/StringExtensions.cs

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

value string

The string to extend.

values string[]

The string sequence to search within value.

Returns

bool

true if all of the values occurs within the value; 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

value string

The string to extend.

comparison StringComparison

One of the enumeration values that specifies the rules to use in the comparison.

values string[]

The string sequence to search within value.

Returns

bool

true if all of the values occurs within the value; otherwise, false.

Exceptions

ArgumentNullException

value is null -or- values is null.