1 write to _entries
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
1127
_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);
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
;
753
Debug.Assert(
_entries
is not null);
755
value =
_entries
[index].Value;
779
Entry[]? entries =
_entries
;
801
Debug.Assert(
_entries
is not null);
803
_entries
[index].Value = value;
820
Debug.Assert(
_entries
is not null);
821
ref Entry e = ref
_entries
[index];
861
RehashIfNecessary(collisionCount,
_entries
);
899
int currentCapacity =
_entries
?.Length ?? 0;
933
Debug.Assert(
_entries
is not null);
934
value =
_entries
[index].Value;
944
/// The bucket is a linked list by index into the <see cref="
_entries
"/> array.
960
Entry[]? entries =
_entries
;
1013
Entry[]? entries =
_entries
;
1073
/// <summary>Grow or shrink <see cref="_buckets"/> and <see cref="
_entries
"/> to the specified capacity.</summary>
1075
[MemberNotNull(nameof(
_entries
))]
1094
if (
_entries
is not null)
1096
Array.Copy(
_entries
, newEntries, count);
1174
Debug.Assert(
_entries
is not null);
1175
if (EqualityComparer<TValue>.Default.Equals(item.Value,
_entries
[index].Value))
1212
ref Entry entry = ref
_entries
![i];
1434
Debug.Assert(dictionary.
_entries
is not null);
1435
ref Entry entry = ref dictionary.
_entries
[_index];
1510
Entry[]? entries = dictionary.
_entries
;
1699
Entry[]? entries = dictionary.
_entries
;
1742
Entry[]? entries = _dictionary.
_entries
;
1788
Entry[]? entries = _dictionary.
_entries
;