Interface IReadOnlySet<T>
A subset of the IReadOnlySet interface added in .NET 5. Members that depend on the IEnumerable interface
are omitted because of performance implications of boxing the enumerator.
Namespace: Unity.XR.CoreUtils.Collections
Assembly: Unity.XR.CoreUtils.dll
Syntax
public interface IReadOnlySet<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
| Name | Description |
|---|---|
| T | The element type. |
Methods
Contains(T)
Determines if the set contains a specific element.
Declaration
bool Contains(T element)
Parameters
| Type | Name | Description |
|---|---|---|
| T | element | The element. |
Returns
| Type | Description |
|---|---|
| bool |
|