1 write to _entries
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
1130
_entries
= newEntries;
41 references to _entries
System.Collections (41)
System\Collections\Generic\OrderedDictionary.cs (41)
40
/// <summary>Indexes into <see cref="
_entries
"/> for the start of chains; indices are 1-based.</summary>
202
/// <summary>Initializes the <see cref="_buckets"/>/<see cref="
_entries
"/>.</summary>
205
[MemberNotNull(nameof(
_entries
))]
212
public int Capacity =>
_entries
?.Length ?? 0;
403
Debug.Assert(
_entries
is not null);
409
_entries
[i].Value = value;
438
Entry[]? entries =
_entries
;
445
entries =
_entries
;
532
Debug.Assert(
_entries
is not null);
535
Array.Clear(
_entries
, 0, _count);
554
Entry[]? entries =
_entries
;
596
Debug.Assert(
_entries
is not null, "count must be positive, which means we must have entries");
598
ref Entry e = ref
_entries
[index];
632
Entry[]? entries =
_entries
;
750
Debug.Assert(
_entries
is not null);
752
value =
_entries
[index].Value;
777
Entry[]? entries =
_entries
;
800
Debug.Assert(
_entries
is not null);
802
_entries
[index].Value = value;
821
Debug.Assert(
_entries
is not null);
822
ref Entry e = ref
_entries
[index];
862
RehashIfNecessary(collisionCount,
_entries
);
900
int currentCapacity =
_entries
?.Length ?? 0;
936
Debug.Assert(
_entries
is not null);
937
value =
_entries
[index].Value;
947
/// The bucket is a linked list by index into the <see cref="
_entries
"/> array.
963
Entry[]? entries =
_entries
;
1016
Entry[]? entries =
_entries
;
1076
/// <summary>Grow or shrink <see cref="_buckets"/> and <see cref="
_entries
"/> to the specified capacity.</summary>
1078
[MemberNotNull(nameof(
_entries
))]
1097
if (
_entries
is not null)
1099
Array.Copy(
_entries
, newEntries, count);
1177
Debug.Assert(
_entries
is not null);
1178
if (EqualityComparer<TValue>.Default.Equals(item.Value,
_entries
[index].Value))
1215
ref Entry entry = ref
_entries
![i];
1437
Debug.Assert(dictionary.
_entries
is not null);
1438
ref Entry entry = ref dictionary.
_entries
[_index];
1513
Entry[]? entries = dictionary.
_entries
;
1702
Entry[]? entries = dictionary.
_entries
;
1745
Entry[]? entries = _dictionary.
_entries
;
1791
Entry[]? entries = _dictionary.
_entries
;