1 write to _entries
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
1143
_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);
541
Array.Clear(
_entries
, 0, _count);
561
Entry[]? entries =
_entries
;
603
Debug.Assert(
_entries
is not null, "count must be positive, which means we must have entries");
605
ref Entry e = ref
_entries
[index];
639
Entry[]? entries =
_entries
;
757
Debug.Assert(
_entries
is not null);
759
value =
_entries
[index].Value;
784
Entry[]? entries =
_entries
;
813
Debug.Assert(
_entries
is not null);
815
_entries
[index].Value = value;
834
Debug.Assert(
_entries
is not null);
835
ref Entry e = ref
_entries
[index];
875
RehashIfNecessary(collisionCount,
_entries
);
913
int currentCapacity =
_entries
?.Length ?? 0;
949
Debug.Assert(
_entries
is not null);
950
value =
_entries
[index].Value;
960
/// The bucket is a linked list by index into the <see cref="
_entries
"/> array.
976
Entry[]? entries =
_entries
;
1029
Entry[]? entries =
_entries
;
1089
/// <summary>Grow or shrink <see cref="_buckets"/> and <see cref="
_entries
"/> to the specified capacity.</summary>
1091
[MemberNotNull(nameof(
_entries
))]
1110
if (
_entries
is not null)
1112
Array.Copy(
_entries
, newEntries, count);
1190
Debug.Assert(
_entries
is not null);
1191
if (EqualityComparer<TValue>.Default.Equals(item.Value,
_entries
[index].Value))
1228
ref Entry entry = ref
_entries
![i];
1451
Debug.Assert(dictionary.
_entries
is not null);
1452
ref Entry entry = ref dictionary.
_entries
[_index];
1527
Entry[]? entries = dictionary.
_entries
;
1716
Entry[]? entries = dictionary.
_entries
;
1759
Entry[]? entries = _dictionary.
_entries
;
1805
Entry[]? entries = _dictionary.
_entries
;