PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Hash­Set<T>Overlaps
Open sandboxFocus

Method Overlaps

Overlaps(IEnumerable<T>)

Determines whether the current set overlaps with the specified collection.

Declaration
public bool Overlaps(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other

The collection to compare to the current set.

Returns
Type Description
Boolean

true if the current set and other share at least one common element; otherwise, false.

Exceptions
Type Condition
ArgumentNullException

other is null.