Implemented interface members:
82 writes to Count
GenerateDocumentationAndConfigFiles (3)
Metrics (3)
Metrics.Legacy (3)
Microsoft.Build (3)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.Collections.Package (3)
Microsoft.CodeAnalysis.Debugging.Package (3)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
Microsoft.CodeAnalysis.PooledObjects.Package (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Threading.Package (3)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Roslyn.Diagnostics.Analyzers (3)
System.Collections.Immutable (8)
System.Reflection.Metadata (2)
Test.Utilities (3)
Text.Analyzers (3)
400 references to Count
Aspire.Hosting (1)
GenerateDocumentationAndConfigFiles (14)
ILLink.RoslynAnalyzer (1)
Metrics (14)
Metrics.Legacy (14)
Microsoft.Build (10)
Microsoft.CodeAnalysis (25)
Microsoft.CodeAnalysis.Analyzers (14)
Microsoft.CodeAnalysis.AnalyzerUtilities (18)
Microsoft.CodeAnalysis.BannedApiAnalyzers (14)
Microsoft.CodeAnalysis.CodeStyle (14)
Microsoft.CodeAnalysis.Collections.Package (11)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.Debugging.Package (11)
Microsoft.CodeAnalysis.Extensions.Package (11)
Microsoft.CodeAnalysis.Features (9)
Microsoft.CodeAnalysis.InteractiveHost (11)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (14)
Microsoft.CodeAnalysis.PooledObjects.Package (11)
Microsoft.CodeAnalysis.PublicApiAnalyzers (14)
Microsoft.CodeAnalysis.ResxSourceGenerator (14)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Threading.Package (11)
Microsoft.CodeAnalysis.Workspaces (16)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (13)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.SourceGeneration (2)
Microsoft.VisualStudio.LanguageServices (1)
Roslyn.Diagnostics.Analyzers (14)
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);
567Requires.Range(index >= 0 && index < this.Count, nameof(index));
569if (index < this.Count - 1)
571Array.Copy(_elements, index + 1, _elements, index, this.Count - index - 1);
601Array.Copy(_elements, index + length, _elements, index, this.Count - index - length);
687if (this.Count == 0)
692T[] result = new T[this.Count];
693Array.Copy(_elements, result, this.Count);
705Requires.Range(index >= 0 && index + this.Count <= array.Length, nameof(index));
706Array.Copy(_elements, 0, array, index, this.Count);
716Array.Copy(_elements, 0, destination, 0, this.Count);
730Requires.Range(sourceIndex >= 0 && sourceIndex + length <= this.Count, nameof(sourceIndex));
768return this.IndexOf(item, startIndex, this.Count - startIndex, EqualityComparer<T>.Default);
801Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
802Requires.Range(count >= 0 && startIndex + count <= this.Count, nameof(count));
835return this.IndexOf(item, startIndex, this.Count - startIndex, equalityComparer);
845if (this.Count == 0)
850return this.LastIndexOf(item, this.Count - 1, this.Count, EqualityComparer<T>.Default);
861if (this.Count == 0 && startIndex == 0)
866Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
898Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
949if (Count > 1)
951Array.Sort(_elements, 0, this.Count, Comparer<T>.Default);
967if (Count > 1)
989if (Count > 1)
1006Requires.Range(count >= 0 && index + count <= this.Count, nameof(count));
1020Requires.Range(this.Count <= destination.Length, nameof(destination));
1021new ReadOnlySpan<T>(_elements, 0, this.Count).CopyTo(destination);
1030for (int i = 0; i < this.Count; i++)
1062this.EnsureCapacity(this.Count + length);
1064int offset = this.Count;
System.Reflection.Metadata (2)
Test.Utilities (14)
Text.Analyzers (14)