1 write to _entries
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
1102
_entries
= newEntries;
41 references to _entries
System.Collections (41)
System\Collections\Generic\OrderedDictionary.cs (41)
41
/// <summary>Indexes into <see cref="
_entries
"/> for the start of chains; indices are 1-based.</summary>
208
/// <summary>Initializes the <see cref="_buckets"/>/<see cref="
_entries
"/>.</summary>
211
[MemberNotNull(nameof(
_entries
))]
218
public int Capacity =>
_entries
?.Length ?? 0;
405
Debug.Assert(
_entries
is not null);
411
_entries
[i].Value = value;
440
Entry[]? entries =
_entries
;
447
entries =
_entries
;
523
Debug.Assert(
_entries
is not null);
526
Array.Clear(
_entries
, 0, _count);
544
Entry[]? entries =
_entries
;
586
Debug.Assert(
_entries
is not null, "count must be positive, which means we must have entries");
588
ref Entry e = ref
_entries
[index];
622
Entry[]? entries =
_entries
;
738
Debug.Assert(
_entries
is not null);
740
value =
_entries
[index].Value;
764
Entry[]? entries =
_entries
;
786
Debug.Assert(
_entries
is not null);
788
_entries
[index].Value = value;
805
Debug.Assert(
_entries
is not null);
806
ref Entry e = ref
_entries
[index];
846
RehashIfNecessary(collisionCount,
_entries
);
884
int currentCapacity =
_entries
?.Length ?? 0;
908
Debug.Assert(
_entries
is not null);
909
value =
_entries
[index].Value;
919
/// The bucket is a linked list by index into the <see cref="
_entries
"/> array.
935
Entry[]? entries =
_entries
;
988
Entry[]? entries =
_entries
;
1048
/// <summary>Grow or shrink <see cref="_buckets"/> and <see cref="
_entries
"/> to the specified capacity.</summary>
1050
[MemberNotNull(nameof(
_entries
))]
1069
if (
_entries
is not null)
1071
Array.Copy(
_entries
, newEntries, count);
1149
Debug.Assert(
_entries
is not null);
1150
if (EqualityComparer<TValue>.Default.Equals(item.Value,
_entries
[index].Value))
1187
ref Entry entry = ref
_entries
![i];
1409
Debug.Assert(dictionary.
_entries
is not null);
1410
ref Entry entry = ref dictionary.
_entries
[_index];
1485
Entry[]? entries = dictionary.
_entries
;
1674
Entry[]? entries = dictionary.
_entries
;
1717
Entry[]? entries = _dictionary.
_entries
;
1763
Entry[]? entries = _dictionary.
_entries
;