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>, IEnumerableType Parameters
- T
- The type of the elements. 
- Inheritance
- 
      objectReadOnlySet<T>
- Implements
- 
      IReadOnlySet<T>IEnumerable<T>
- Extension Methods
Constructors
ReadOnlySet(ISet<T>)
public ReadOnlySet(ISet<T> innerSet)Parameters
- innerSetISet<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
- itemT
- The item. 
Returns
- bool
- trueif 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.