Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Hash­Set(T) Class / Advisable­Hash­Set(T) Methods / Advisable­Hash­Set(T).​Overlaps Method

AdvisableHashSet<T>.Overlaps Method

Determines whether the current set overlaps with the specified collection.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.3.0 (6.1.3.0)
Syntax
C#
public bool Overlaps(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.Generic.IEnumerable<T>
The collection to compare to the current set.

Return Value

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

Implements

ISet<T>.Overlaps(IEnumerable<T>)
Exceptions
ExceptionCondition
ArgumentNullExceptionother is null.
See Also