ReadOnlySet<T> class

Implements a read-only wrapper around a ISet.

public sealed class ReadOnlySet<T> : IReadOnlySet<T>, ISet<T>
parameter description
T The type of item in the ReadOnlySet.

Public Members

name description
ReadOnlySet(…) Initializes a new instance of the ReadOnlySet class.
Count { get; } Gets the number of elements contained in the set.
IsReadOnly { get; } Returns true; this collection is read-only.
Contains(…) Determines whether the set contains a specific value.
CopyTo(…) Copies the elements of the ReadOnlySet to an Array, starting at a particular Array index.
GetEnumerator() Returns an enumerator that iterates through the collection.
IsProperSubsetOf(…) Determines whether the current set is a proper (strict) subset of a specified collection.
IsProperSupersetOf(…) Determines whether the current set is a proper (strict) superset of a specified collection.
IsSubsetOf(…) Determines whether a set is a subset of a specified collection.
IsSupersetOf(…) Determines whether the current set is a superset of a specified collection.
Overlaps(…) Determines whether the current set overlaps with the specified collection.
SetEquals(…) Determines whether the current set and the specified collection contain the same elements.

See Also