5 writes to _entries
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (5)
164
_entries
= (Entry[])source._entries!.Clone();
730
_entries
= new Entry[capacity];
1353
_entries
= entries;
1414
_entries
= entries;
1442
_entries
= entries;
33 references to _entries
System.Private.CoreLib (33)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (33)
114
if (_count > 0 &&
_entries
!.Length / _count > ShrinkThreshold)
164
_entries = (Entry[])source.
_entries
!.Clone();
175
CopyEntries(source.
_entries
!, source._count);
194
Debug.Assert(
_entries
!= null, "_entries should be non-null");
200
Array.Clear(
_entries
, 0, count);
209
/// <summary>Gets the index of the item in <see cref="
_entries
"/>, or -1 if it's not in the set.</summary>
215
Entry[]? entries =
_entries
;
271
/// <summary>Gets a reference to the specified hashcode's bucket, containing an index into <see cref="
_entries
"/>.</summary>
287
Entry[]? entries =
_entries
;
353
public int Capacity =>
_entries
?.Length ?? 0;
455
Entry[]? entries = set.
_entries
;
506
entries = set.
_entries
;
539
Entry[]? entries = set.
_entries
;
625
Debug.Assert(set.
_entries
!= null, "expected entries to be != null");
629
Entry[]? entries = set.
_entries
;
782
actualValue =
_entries
![index].Value;
1218
Entry[]? entries =
_entries
;
1238
Entry[]? entries =
_entries
;
1291
int currentCapacity =
_entries
== null ? 0 :
_entries
.Length;
1313
Debug.Assert(
_entries
!= null, "_entries should be non-null");
1315
Debug.Assert(newSize >=
_entries
.Length);
1320
Array.Copy(
_entries
, entries, count);
1358
Debug.Assert(
_entries
is not null);
1360
Entry[] newEntries =
_entries
;
1397
Entry[]? oldEntries =
_entries
;
1452
/// <param name="location">The index into <see cref="
_entries
"/> of the element.</param>
1462
Entry[]? entries =
_entries
;
1540
entries =
_entries
;
1595
Entry[]? entries =
_entries
;
1644
ref Entry entry = ref
_entries
![i];
1733
Remove(
_entries
![i].Value);
1867
ref Entry entry = ref _hashSet.
_entries
![_index++];