1 write to _elements
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
28
_elements
= new ArrayBuilder<T>();
9 references to _elements
Microsoft.CodeAnalysis.CodeStyle (9)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (9)
36
_elements
!.Add(value);
59
_elements
!.Insert(index, value);
81
_elements
!.RemoveAt(
_elements
.IndexOf(value));
85
public int Count =>
_elements
?.Count ?? 0;
90
=>
_elements
is null ? SpecializedCollections.EmptyEnumerator<T>() : ((IEnumerable<T>)
_elements
).GetEnumerator();
94
public ImmutableArray<T> AsImmutable() =>
_elements
.ToImmutableArrayOrEmpty();
96
public T this[int i] =>
_elements
![i];