Click or drag to resize
CommonExtensionsContainsAnyT Method
Checks for the occurrence of the given items in the collection.

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core (in Telerik.Windows.Diagrams.Core.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public static bool ContainsAny<T>(
	this IEnumerable<T> collection,
	IEnumerable<T> otherCollection
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
A collection to be tested for the given items.
otherCollection
Type: System.Collections.GenericIEnumerableT
The other collection.

Type Parameters

T

Return Value

Type: Boolean
True if the specified collection contains any of the otherCollection items; otherwise, false.

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).
Exceptions
ExceptionCondition
ArgumentNullException Will be raised if either the collection or the otherCollection is null.
See Also