1 write to _set
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
24
_set
= set;
14 references to _set
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (14)
31
protected ISet<T> Set =>
_set
;
34
public int Count =>
_set
.Count;
38
_set
.Count == 0 ? ((IEnumerable<T>)Array.Empty<T>()).GetEnumerator() :
39
_set
.GetEnumerator();
45
public bool Contains(T item) =>
_set
.Contains(item);
48
public bool IsProperSubsetOf(IEnumerable<T> other) =>
_set
.IsProperSubsetOf(other);
51
public bool IsProperSupersetOf(IEnumerable<T> other) =>
_set
.IsProperSupersetOf(other);
54
public bool IsSubsetOf(IEnumerable<T> other) =>
_set
.IsSubsetOf(other);
57
public bool IsSupersetOf(IEnumerable<T> other) =>
_set
.IsSupersetOf(other);
60
public bool Overlaps(IEnumerable<T> other) =>
_set
.Overlaps(other);
63
public bool SetEquals(IEnumerable<T> other) =>
_set
.SetEquals(other);
66
void ICollection<T>.CopyTo(T[] array, int arrayIndex) =>
_set
.CopyTo(array, arrayIndex);
69
void ICollection.CopyTo(Array array, int index) => CollectionHelpers.CopyTo(
_set
, array, index);
78
object ICollection.SyncRoot =>
_set
is ICollection c ? c.SyncRoot : this;