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))] 218public int Capacity => _entries?.Length ?? 0; 409Debug.Assert(_entries is not null); 415_entries[i].Value = value; 444Entry[]? entries = _entries; 451entries = _entries; 538Debug.Assert(_entries is not null); 541Array.Clear(_entries, 0, _count); 559Entry[]? entries = _entries; 601Debug.Assert(_entries is not null, "count must be positive, which means we must have entries"); 603ref Entry e = ref _entries[index]; 637Entry[]? entries = _entries; 753Debug.Assert(_entries is not null); 755value = _entries[index].Value; 779Entry[]? entries = _entries; 801Debug.Assert(_entries is not null); 803_entries[index].Value = value; 820Debug.Assert(_entries is not null); 821ref Entry e = ref _entries[index]; 861RehashIfNecessary(collisionCount, _entries); 899int currentCapacity = _entries?.Length ?? 0; 933Debug.Assert(_entries is not null); 934value = _entries[index].Value; 944/// The bucket is a linked list by index into the <see cref="_entries"/> array. 960Entry[]? entries = _entries; 1013Entry[]? entries = _entries; 1073/// <summary>Grow or shrink <see cref="_buckets"/> and <see cref="_entries"/> to the specified capacity.</summary> 1075[MemberNotNull(nameof(_entries))] 1094if (_entries is not null) 1096Array.Copy(_entries, newEntries, count); 1174Debug.Assert(_entries is not null); 1175if (EqualityComparer<TValue>.Default.Equals(item.Value, _entries[index].Value)) 1212ref Entry entry = ref _entries![i]; 1434Debug.Assert(dictionary._entries is not null); 1435ref Entry entry = ref dictionary._entries[_index]; 1510Entry[]? entries = dictionary._entries; 1699Entry[]? entries = dictionary._entries; 1742Entry[]? entries = _dictionary._entries; 1788Entry[]? entries = _dictionary._entries;