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)
114
if (_count > 0 &&
_entries
!.Length / _count > ShrinkThreshold)
164
_entries = (Entry[])source.
_entries
!.Clone();
176
Entry[]? entries = source.
_entries
;
203
Debug.Assert(
_entries
!= null, "_entries should be non-null");
209
Array.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>
224
Entry[]? entries =
_entries
;
280
/// <summary>Gets a reference to the specified hashcode's bucket, containing an index into <see cref="
_entries
"/>.</summary>
296
Entry[]? entries =
_entries
;
362
public int Capacity =>
_entries
?.Length ?? 0;
464
Entry[]? entries = set.
_entries
;
515
entries = set.
_entries
;
548
Entry[]? entries = set.
_entries
;
634
Debug.Assert(set.
_entries
!= null, "expected entries to be != null");
638
Entry[]? entries = set.
_entries
;
791
actualValue =
_entries
![index].Value;
1203
Entry[]? entries =
_entries
;
1223
Entry[]? entries =
_entries
;
1276
int currentCapacity =
_entries
== null ? 0 :
_entries
.Length;
1298
Debug.Assert(
_entries
!= null, "_entries should be non-null");
1299
Debug.Assert(newSize >=
_entries
.Length);
1304
Array.Copy(
_entries
, entries, count);
1357
Entry[]? oldEntries =
_entries
;
1367
Entry[]? entries =
_entries
;
1417
/// <param name="location">The index into <see cref="
_entries
"/> of the element.</param>
1427
Entry[]? entries =
_entries
;
1505
entries =
_entries
;
1560
Entry[]? entries =
_entries
;
1609
ref Entry entry = ref
_entries
![i];
1698
Remove(
_entries
![i].Value);
1832
ref Entry entry = ref _hashSet.
_entries
![_index++];