Table of Contents

Class ReadOnlySet<T>

Namespace
Stride.Core.Collections
Assembly
Stride.Core.dll

Represents a strongly-typed, read-only set of element.

public class ReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T

The type of the elements.

Inheritance
ReadOnlySet<T>
Implements
Extension Methods

Constructors

ReadOnlySet(ISet<T>)

public ReadOnlySet(ISet<T> innerSet)

Parameters

innerSet ISet<T>

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

The number of elements in the collection.

Methods

Contains(T)

Determines whether the set [contains] [the specified item].

public bool Contains(T item)

Parameters

item T

The item.

Returns

bool

true if the set [contains] [the specified item]; otherwise, false.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

An enumerator that can be used to iterate through the collection.