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)
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;
1195
Entry[]? entries =
_entries
;
1215
Entry[]? entries =
_entries
;
1268
int currentCapacity =
_entries
== null ? 0 :
_entries
.Length;
1290
Debug.Assert(
_entries
!= null, "_entries should be non-null");
1291
Debug.Assert(newSize >=
_entries
.Length);
1296
Array.Copy(
_entries
, entries, count);
1349
Entry[]? oldEntries =
_entries
;
1359
Entry[]? entries =
_entries
;
1409
/// <param name="location">The index into <see cref="
_entries
"/> of the element.</param>
1419
Entry[]? entries =
_entries
;
1497
entries =
_entries
;
1552
Entry[]? entries =
_entries
;
1601
ref Entry entry = ref
_entries
![i];
1690
Remove(
_entries
![i].Value);
1824
ref Entry entry = ref _hashSet.
_entries
![_index++];