IReadOnlySet<T>.Contains(T) Method

Definition

Determines if the set contains a specific item.

C#
public bool Contains(T item);

Parameters

item
T

The item to check if the set contains.

Returns

true if found; otherwise false.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9