Click or drag to resize

LinqExtensionMethodsAnyAndEveryT Method

Returns whether or not the collection has at least one item AND at least one item matching the given pattern

Namespace:  Couchbase.Lite.Internal.Linq
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0125
Syntax
C#
public static bool AnyAndEvery<T>(
	this IEnumerable<T> collection,
	Func<T, bool> predicate
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
The collection to operate on (implicit)
predicate
Type: SystemFuncT, Boolean
The predicate to use

Type Parameters

T
The type of collection items to operate on

Return Value

Type: Boolean
true if the collection has at least one element and at least one element matching the given pattern, false otherwise

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also