1 write to _entries
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
1136
_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;
409
Debug.Assert(
_entries
is not null);
415
_entries
[i].Value = value;
444
Entry[]? entries =
_entries
;
451
entries =
_entries
;
538
Debug.Assert(
_entries
is not null);
541
Array.Clear(
_entries
, 0, _count);
560
Entry[]? entries =
_entries
;
602
Debug.Assert(
_entries
is not null, "count must be positive, which means we must have entries");
604
ref Entry e = ref
_entries
[index];
638
Entry[]? entries =
_entries
;
756
Debug.Assert(
_entries
is not null);
758
value =
_entries
[index].Value;
783
Entry[]? entries =
_entries
;
806
Debug.Assert(
_entries
is not null);
808
_entries
[index].Value = value;
827
Debug.Assert(
_entries
is not null);
828
ref Entry e = ref
_entries
[index];
868
RehashIfNecessary(collisionCount,
_entries
);
906
int currentCapacity =
_entries
?.Length ?? 0;
942
Debug.Assert(
_entries
is not null);
943
value =
_entries
[index].Value;
953
/// The bucket is a linked list by index into the <see cref="
_entries
"/> array.
969
Entry[]? entries =
_entries
;
1022
Entry[]? entries =
_entries
;
1082
/// <summary>Grow or shrink <see cref="_buckets"/> and <see cref="
_entries
"/> to the specified capacity.</summary>
1084
[MemberNotNull(nameof(
_entries
))]
1103
if (
_entries
is not null)
1105
Array.Copy(
_entries
, newEntries, count);
1183
Debug.Assert(
_entries
is not null);
1184
if (EqualityComparer<TValue>.Default.Equals(item.Value,
_entries
[index].Value))
1221
ref Entry entry = ref
_entries
![i];
1443
Debug.Assert(dictionary.
_entries
is not null);
1444
ref Entry entry = ref dictionary.
_entries
[_index];
1519
Entry[]? entries = dictionary.
_entries
;
1708
Entry[]? entries = dictionary.
_entries
;
1751
Entry[]? entries = _dictionary.
_entries
;
1797
Entry[]? entries = _dictionary.
_entries
;