1 write to _elements
Microsoft.CodeAnalysis.CodeStyle (1)
SetWithInsertionOrder.cs (1)
27_elements = new ArrayBuilder<T>();
9 references to _elements
Microsoft.CodeAnalysis.CodeStyle (9)
SetWithInsertionOrder.cs (9)
35_elements!.Add(value); 58_elements!.Insert(index, value); 80_elements!.RemoveAt(_elements.IndexOf(value)); 84public int Count => _elements?.Count ?? 0; 89=> _elements is null ? SpecializedCollections.EmptyEnumerator<T>() : ((IEnumerable<T>)_elements).GetEnumerator(); 93public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty(); 95public T this[int i] => _elements![i];