4 writes to _arrayStorage
Microsoft.AspNetCore.Http (4)
parent\parent\parent\Shared\Dictionary\AdaptiveCapacityDictionary.cs (4)
73_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>(); 77_arrayStorage = new KeyValuePair<TKey, TValue>[capacity]; 525_arrayStorage = null; 536_arrayStorage = array;
37 references to _arrayStorage
Microsoft.AspNetCore.Http (37)
parent\parent\parent\Shared\Dictionary\AdaptiveCapacityDictionary.cs (37)
118if (_arrayStorage != null) 129_arrayStorage[_count++] = new KeyValuePair<TKey, TValue>(key, value); 133_arrayStorage[index] = new KeyValuePair<TKey, TValue>(key, value); 156if (_arrayStorage != null) 160var array = _arrayStorage; 181if (_arrayStorage != null) 185var array = _arrayStorage; 204if (_arrayStorage != null) 222if (_arrayStorage != null) 228Debug.Assert(_arrayStorage == null); 238_arrayStorage[_count] = new KeyValuePair<TKey, TValue>(key, value); 255if (_arrayStorage != null) 257Array.Clear(_arrayStorage, 0, _count); 301if (_arrayStorage != null) 308var storage = _arrayStorage; 347if (_arrayStorage != null) 355var array = _arrayStorage; 378if (_arrayStorage != null) 389var array = _arrayStorage; 417if (_arrayStorage != null) 429var array = _arrayStorage; 457if (_arrayStorage != null) 471_arrayStorage[Count] = new KeyValuePair<TKey, TValue>(key, value); 487if (_arrayStorage != null) 504if (_arrayStorage!.Length >= capacity) 514Debug.Assert(_arrayStorage != null); 519foreach (var item in _arrayStorage) 529capacity = _arrayStorage.Length == 0 ? DefaultArrayThreshold : _arrayStorage.Length * 2; 533Array.Copy(_arrayStorage, 0, array, 0, _count); 544Debug.Assert(_arrayStorage is not null); 545Debug.Assert(_count <= _arrayStorage.Length); 547return _arrayStorage.AsSpan(0, _count); 555Debug.Assert(_arrayStorage != null); 576Debug.Assert(_arrayStorage != null); 646if (dictionary._arrayStorage != null) 653Current = dictionary._arrayStorage[_index];