Implemented interface members:
31 writes to Count
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.PooledObjects.Package (3)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
System.Collections.Immutable (8)
System.Reflection.Metadata (2)
158 references to Count
Aspire.Hosting (1)
Microsoft.CodeAnalysis (23)
Microsoft.CodeAnalysis.CodeStyle (12)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Features (9)
Microsoft.CodeAnalysis.InteractiveHost (9)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PooledObjects.Package (9)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (14)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.Interop.SourceGeneration (2)
System.Collections.Immutable (59)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (56)
113for (int i = value; i < this.Count; i++)
142if (index >= this.Count)
152if (index >= this.Count)
170if (index >= this.Count)
201/// <exception cref="InvalidOperationException">When <see cref="ImmutableArray{T}.Builder.Count"/> doesn't
205if (Capacity != Count)
220/// If <see cref="Capacity"/> equals <see cref="Count"/>, the internal array will be extracted
255Requires.Range(index >= 0 && index <= this.Count, nameof(index));
256this.EnsureCapacity(this.Count + 1);
258if (index < this.Count)
260Array.Copy(_elements, index, _elements, index + 1, this.Count - index);
274Requires.Range(index >= 0 && index <= this.Count, nameof(index));
278this.EnsureCapacity(this.Count + count);
280if (index != this.Count)
303Requires.Range(index >= 0 && index <= this.Count, nameof(index));
310this.EnsureCapacity(this.Count + items.Length);
312if (index != this.Count)
345this.EnsureCapacity(this.Count + count);
368int offset = this.Count;
383int offset = this.Count;
399int offset = this.Count;
435int offset = this.Count;
448int offset = this.Count;
478this.AddRange(items._elements, items.Count);
489this.AddRange(items._elements, items.Count);
565Requires.Range(index >= 0 && index < this.Count, nameof(index));
567if (index < this.Count - 1)
569Array.Copy(_elements, index + 1, _elements, index, this.Count - index - 1);
599Array.Copy(_elements, index + length, _elements, index, this.Count - index - length);
685if (this.Count == 0)
690T[] result = new T[this.Count];
691Array.Copy(_elements, result, this.Count);
703Requires.Range(index >= 0 && index + this.Count <= array.Length, nameof(index));
704Array.Copy(_elements, 0, array, index, this.Count);
714Array.Copy(_elements, 0, destination, 0, this.Count);
728Requires.Range(sourceIndex >= 0 && sourceIndex + length <= this.Count, nameof(sourceIndex));
766return this.IndexOf(item, startIndex, this.Count - startIndex, EqualityComparer<T>.Default);
799Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
800Requires.Range(count >= 0 && startIndex + count <= this.Count, nameof(count));
833return this.IndexOf(item, startIndex, this.Count - startIndex, equalityComparer);
843if (this.Count == 0)
848return this.LastIndexOf(item, this.Count - 1, this.Count, EqualityComparer<T>.Default);
859if (this.Count == 0 && startIndex == 0)
864Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
896Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
947if (Count > 1)
949Array.Sort(_elements, 0, this.Count, Comparer<T>.Default);
965if (Count > 1)
987if (Count > 1)
1004Requires.Range(count >= 0 && index + count <= this.Count, nameof(count));
1018Requires.Range(this.Count <= destination.Length, nameof(destination));
1019new ReadOnlySpan<T>(_elements, 0, this.Count).CopyTo(destination);
1028for (int i = 0; i < this.Count; i++)
1060this.EnsureCapacity(this.Count + length);
1062int offset = this.Count;
System.Reflection.Metadata (2)