4 writes to _entries
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (4)
164_entries = (Entry[])source._entries!.Clone(); 739_entries = new Entry[capacity]; 1329_entries = entries; 1399_entries = entries;
32 references to _entries
System.Private.CoreLib (32)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (32)
114if (_count > 0 && _entries!.Length / _count > ShrinkThreshold) 164_entries = (Entry[])source._entries!.Clone(); 176Entry[]? entries = source._entries; 203Debug.Assert(_entries != null, "_entries should be non-null"); 209Array.Clear(_entries, 0, count); 218/// <summary>Gets the index of the item in <see cref="_entries"/>, or -1 if it's not in the set.</summary> 224Entry[]? entries = _entries; 280/// <summary>Gets a reference to the specified hashcode's bucket, containing an index into <see cref="_entries"/>.</summary> 296Entry[]? entries = _entries; 362public int Capacity => _entries?.Length ?? 0; 464Entry[]? entries = set._entries; 515entries = set._entries; 548Entry[]? entries = set._entries; 634Debug.Assert(set._entries != null, "expected entries to be != null"); 638Entry[]? entries = set._entries; 791actualValue = _entries![index].Value; 1195Entry[]? entries = _entries; 1215Entry[]? entries = _entries; 1268int currentCapacity = _entries == null ? 0 : _entries.Length; 1290Debug.Assert(_entries != null, "_entries should be non-null"); 1291Debug.Assert(newSize >= _entries.Length); 1296Array.Copy(_entries, entries, count); 1349Entry[]? oldEntries = _entries; 1359Entry[]? entries = _entries; 1409/// <param name="location">The index into <see cref="_entries"/> of the element.</param> 1419Entry[]? entries = _entries; 1497entries = _entries; 1552Entry[]? entries = _entries; 1601ref Entry entry = ref _entries![i]; 1690Remove(_entries![i].Value); 1824ref Entry entry = ref _hashSet._entries![_index++];