1 write to _entries
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
1135
_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>
207
/// <summary>Initializes the <see cref="_buckets"/>/<see cref="
_entries
"/>.</summary>
210
[MemberNotNull(nameof(
_entries
))]
217
public int Capacity =>
_entries
?.Length ?? 0;
408
Debug.Assert(
_entries
is not null);
414
_entries
[i].Value = value;
443
Entry[]? entries =
_entries
;
450
entries =
_entries
;
537
Debug.Assert(
_entries
is not null);
540
Array.Clear(
_entries
, 0, _count);
559
Entry[]? entries =
_entries
;
601
Debug.Assert(
_entries
is not null, "count must be positive, which means we must have entries");
603
ref Entry e = ref
_entries
[index];
637
Entry[]? entries =
_entries
;
755
Debug.Assert(
_entries
is not null);
757
value =
_entries
[index].Value;
782
Entry[]? entries =
_entries
;
805
Debug.Assert(
_entries
is not null);
807
_entries
[index].Value = value;
826
Debug.Assert(
_entries
is not null);
827
ref Entry e = ref
_entries
[index];
867
RehashIfNecessary(collisionCount,
_entries
);
905
int currentCapacity =
_entries
?.Length ?? 0;
941
Debug.Assert(
_entries
is not null);
942
value =
_entries
[index].Value;
952
/// The bucket is a linked list by index into the <see cref="
_entries
"/> array.
968
Entry[]? entries =
_entries
;
1021
Entry[]? entries =
_entries
;
1081
/// <summary>Grow or shrink <see cref="_buckets"/> and <see cref="
_entries
"/> to the specified capacity.</summary>
1083
[MemberNotNull(nameof(
_entries
))]
1102
if (
_entries
is not null)
1104
Array.Copy(
_entries
, newEntries, count);
1182
Debug.Assert(
_entries
is not null);
1183
if (EqualityComparer<TValue>.Default.Equals(item.Value,
_entries
[index].Value))
1220
ref Entry entry = ref
_entries
![i];
1442
Debug.Assert(dictionary.
_entries
is not null);
1443
ref Entry entry = ref dictionary.
_entries
[_index];
1518
Entry[]? entries = dictionary.
_entries
;
1707
Entry[]? entries = dictionary.
_entries
;
1750
Entry[]? entries = _dictionary.
_entries
;
1796
Entry[]? entries = _dictionary.
_entries
;