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)
31protected ISet<T> Set => _set; 34public int Count => _set.Count; 38_set.Count == 0 ? ((IEnumerable<T>)Array.Empty<T>()).GetEnumerator() : 39_set.GetEnumerator(); 45public bool Contains(T item) => _set.Contains(item); 48public bool IsProperSubsetOf(IEnumerable<T> other) => _set.IsProperSubsetOf(other); 51public bool IsProperSupersetOf(IEnumerable<T> other) => _set.IsProperSupersetOf(other); 54public bool IsSubsetOf(IEnumerable<T> other) => _set.IsSubsetOf(other); 57public bool IsSupersetOf(IEnumerable<T> other) => _set.IsSupersetOf(other); 60public bool Overlaps(IEnumerable<T> other) => _set.Overlaps(other); 63public bool SetEquals(IEnumerable<T> other) => _set.SetEquals(other); 66void ICollection<T>.CopyTo(T[] array, int arrayIndex) => _set.CopyTo(array, arrayIndex); 69void ICollection.CopyTo(Array array, int index) => CollectionHelpers.CopyTo(_set, array, index); 78object ICollection.SyncRoot => _set is ICollection c ? c.SyncRoot : this;