1 write to _set
Microsoft.CodeAnalysis (1)
ImmutableSegmentedHashSet`1.cs (1)
22_set = set;
28 references to _set
Microsoft.CodeAnalysis (28)
ImmutableSegmentedHashSet`1.cs (19)
26public IEqualityComparer<T> KeyComparer => _set.Comparer; 29public int Count => _set.Count; 31public bool IsDefault => _set == null; 34public bool IsEmpty => _set.Count == 0; 40object ICollection.SyncRoot => _set; 93=> _set.Contains(value); 126=> new(_set); 149=> _set.IsProperSubsetOf(other); 153=> _set.IsProperSupersetOf(other); 157=> _set.IsSubsetOf(other); 161=> _set.IsSupersetOf(other); 165=> _set.Overlaps(other); 188=> _set.SetEquals(other); 220if (_set.TryGetValue(equalValue, out var value)) 263return new ImmutableSegmentedHashSet<T>(new SegmentedHashSet<T>(self._set, equalityComparer)); 267=> _set?.GetHashCode() ?? 0; 273=> _set == other._set; 297=> _set.CopyTo(array, arrayIndex);
ImmutableSegmentedHashSet`1+Builder.cs (3)
55private SegmentedHashSet<T> ReadOnlySet => _mutableSet ?? _set._set; 67_mutableSet = new SegmentedHashSet<T>(originalSet._set, originalSet.KeyComparer); 134GetOrCreateMutableSet().ExceptWith(otherSet._set);
ImmutableSegmentedHashSet`1+PrivateInterlocked.cs (6)
19var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 28var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 37var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);