Implemented interface members:
58 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.NetAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.DotNet.ILAssembler (1)
Microsoft.NET.ProjectData (6)
Roslyn.Diagnostics.Analyzers (3)
System.Collections.Immutable (10)
System.Reflection.Metadata (2)
322 references to Count
AnalyzeCiFailure (2)
Aspire.Hosting (1)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Provisioning.Generators (1)
Aspire.Hosting.Java (1)
Aspire.Hosting.Native.Server (2)
dotnet-format (3)
GenerateDocumentationAndConfigFiles (14)
ILLink.RoslynAnalyzer (2)
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 (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (11)
Microsoft.CodeAnalysis.Features (9)
Microsoft.CodeAnalysis.NetAnalyzers (17)
Microsoft.CodeAnalysis.Razor.Compiler (10)
Microsoft.CodeAnalysis.ResxSourceGenerator (14)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (15)
Microsoft.DotNet.ILAssembler (15)
Microsoft.DotNet.ProjectTools (1)
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.SourceGeneration (3)
Microsoft.NET.ProjectData (3)
Roslyn.Diagnostics.Analyzers (14)
System.Collections.Immutable (59)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (56)
112for (int i = value; i < this.Count; i++)
141if (index >= this.Count)
151if (index >= this.Count)
169if (index >= this.Count)
200/// <exception cref="InvalidOperationException">When <see cref="ImmutableArray{T}.Builder.Count"/> doesn't
204if (Capacity != Count)
219/// If <see cref="Capacity"/> equals <see cref="Count"/>, the internal array will be extracted
254Requires.Range(index >= 0 && index <= this.Count, nameof(index));
255this.EnsureCapacity(this.Count + 1);
257if (index < this.Count)
259Array.Copy(_elements, index, _elements, index + 1, this.Count - index);
273Requires.Range(index >= 0 && index <= this.Count, nameof(index));
277this.EnsureCapacity(this.Count + count);
279if (index != this.Count)
302Requires.Range(index >= 0 && index <= this.Count, nameof(index));
309this.EnsureCapacity(this.Count + items.Length);
311if (index != this.Count)
344this.EnsureCapacity(this.Count + count);
367int offset = this.Count;
382int offset = this.Count;
398int offset = this.Count;
434int offset = this.Count;
447int offset = this.Count;
477this.AddRange(items._elements, items.Count);
488this.AddRange(items._elements, items.Count);
566Requires.Range(index >= 0 && index < this.Count, nameof(index));
568if (index < this.Count - 1)
570Array.Copy(_elements, index + 1, _elements, index, this.Count - index - 1);
593Array.Copy(_elements, index + length, _elements, index, this.Count - index - length);
679if (this.Count == 0)
684T[] result = new T[this.Count];
685Array.Copy(_elements, result, this.Count);
697Requires.Range(index >= 0 && index + this.Count <= array.Length, nameof(index));
698Array.Copy(_elements, 0, array, index, this.Count);
708Array.Copy(_elements, 0, destination, 0, this.Count);
722Requires.Range(sourceIndex >= 0 && sourceIndex + length <= this.Count, nameof(sourceIndex));
760return this.IndexOf(item, startIndex, this.Count - startIndex, EqualityComparer<T>.Default);
793Requires.Range(startIndex >= 0 && startIndex <= this.Count, nameof(startIndex));
794Requires.Range(count >= 0 && (uint)(startIndex + count) <= (uint)this.Count, nameof(count));
827return this.IndexOf(item, startIndex, this.Count - startIndex, equalityComparer);
837if (this.Count == 0)
842return this.LastIndexOf(item, this.Count - 1, this.Count, EqualityComparer<T>.Default);
853if (this.Count == 0 && startIndex == 0)
858Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
890Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
925if (Count > 1)
927Array.Sort(_elements, 0, this.Count, Comparer<T>.Default);
943if (Count > 1)
965if (Count > 1)
982Requires.Range(count >= 0 && index + count <= this.Count, nameof(count));
996Requires.Range(this.Count <= destination.Length, nameof(destination));
997new ReadOnlySpan<T>(_elements, 0, this.Count).CopyTo(destination);
1006for (int i = 0; i < this.Count; i++)
1038this.EnsureCapacity(this.Count + length);
1040int offset = this.Count;
System.Reflection.Metadata (2)