Implemented interface members:
46 writes to Count
GenerateDocumentationAndConfigFiles (3)
Microsoft.AspNetCore.Razor.Utilities.Shared (3)
Microsoft.Build (3)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Workspaces (3)
Roslyn.Diagnostics.Analyzers (3)
System.Collections.Immutable (8)
System.Reflection.Metadata (2)
273 references to Count
Aspire.Hosting (1)
dotnet-format (3)
GenerateDocumentationAndConfigFiles (14)
ILAssembler (1)
ILLink.RoslynAnalyzer (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (28)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (15)
33ArgHelper.ThrowIfGreaterThan(index, builder.Count);
41if (index == builder.Count)
1275if (builder.Count != builder.Capacity)
1524/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1548/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1572/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1595/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1619/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1643/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1669/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1697/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1725/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1752/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1780/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
1808/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\ArrayBuilderPool`1.Policy.cs (1)
49var count = builder.Count;
Microsoft.Build (10)
Microsoft.Build.Tasks.Git (1)
Microsoft.CodeAnalysis (25)
Microsoft.CodeAnalysis.Analyzers (14)
Microsoft.CodeAnalysis.AnalyzerUtilities (18)
Microsoft.CodeAnalysis.CodeStyle (14)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.Extensions.Package (11)
Microsoft.CodeAnalysis.Features (9)
Microsoft.CodeAnalysis.Razor.Compiler (10)
Microsoft.CodeAnalysis.ResxSourceGenerator (14)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (16)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.SourceGeneration (2)
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 && (uint)(startIndex + count) <= (uint)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)