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]; 1337_entries = entries; 1407_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; 1203Entry[]? entries = _entries; 1223Entry[]? entries = _entries; 1276int currentCapacity = _entries == null ? 0 : _entries.Length; 1298Debug.Assert(_entries != null, "_entries should be non-null"); 1299Debug.Assert(newSize >= _entries.Length); 1304Array.Copy(_entries, entries, count); 1357Entry[]? oldEntries = _entries; 1367Entry[]? entries = _entries; 1417/// <param name="location">The index into <see cref="_entries"/> of the element.</param> 1427Entry[]? entries = _entries; 1505entries = _entries; 1560Entry[]? entries = _entries; 1609ref Entry entry = ref _entries![i]; 1698Remove(_entries![i].Value); 1832ref Entry entry = ref _hashSet._entries![_index++];