1 write to Count
Microsoft.AspNetCore.Components (1)
RenderTree\ArrayRange.cs (1)
33Count = count;
53 references to Count
Microsoft.AspNetCore.Components (11)
Rendering\RenderTreeUpdater.cs (1)
22var framesLength = frames.Count;
RenderTree\ArrayRange.cs (3)
42var buffer = new T[Count]; 43System.Array.Copy(Array, buffer, Count); 44return new ArrayRange<T>(buffer, Count);
RenderTree\Renderer.cs (4)
825var updatedComponentsId = new int[updatedComponents.Count]; 837for (var i = 0; i < updatedComponents.Count; i++) 996if (eventHandlerIds.Count == 0) 1004var count = eventHandlerIds.Count;
RenderTree\RenderTreeDiffBuilder.cs (3)
32AppendDiffEntriesForRange(ref diffContext, 0, oldTree.Count, 0, newTree.Count); 41=> DisposeFramesInRange(batchBuilder, componentId, frames.Array, 0, frames.Count);
Microsoft.AspNetCore.Components.Authorization.Tests (2)
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
15return new ArraySegment<T>(source.Array, 0, source.Count);
src\Components\Shared\test\TestRenderer.cs (1)
118for (var i = 0; i < renderBatch.UpdatedComponents.Count; i++)
Microsoft.AspNetCore.Components.Endpoints (3)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (2)
88var changesCount = changes.Count; 112var changesCount = changes.Count;
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
108var count = renderBatch.UpdatedComponents.Count;
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
ImportMapTest.cs (5)
67Assert.Equal(4, frames.Count); 114Assert.Equal(3, frames.Count); 179Assert.Equal(3, frames.Count); 234Assert.Equal(1, _renderer.CapturedBatch.UpdatedComponents.Count); 238Assert.Equal(3, frames.Count);
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
15return new ArraySegment<T>(source.Array, 0, source.Count);
src\Components\Shared\test\TestRenderer.cs (1)
118for (var i = 0; i < renderBatch.UpdatedComponents.Count; i++)
Microsoft.AspNetCore.Components.Server (6)
src\Components\Shared\src\RenderBatchWriter.cs (6)
64var count = diffs.Count; 121var count = frames.Count; 208_binaryWriter.Write(numbers.Count); 211var count = numbers.Count; 223_binaryWriter.Write(numbers.Count); 226var count = numbers.Count;
Microsoft.AspNetCore.Components.Tests (12)
Rendering\RenderTreeBuilderTest.cs (2)
167Assert.Equal(2, frames.Count); 186Assert.Equal(4, frames.Count);
RenderTreeDiffBuilderTest.cs (8)
239Assert.Equal(1, batchBuilder.UpdatedComponents.Count); 1600Assert.Equal(1, renderBatch.UpdatedComponents.Count); 1724Assert.Equal(1, renderBatch.UpdatedComponents.Count); // Because the diff builder only queues child component renders; it doesn't actually perform them itself 2334for (var i = 0; oldTree.GetFrames().Count < oldTree.GetFrames().Array.Length; i++) 2339for (var i = 0; newTree.GetFrames().Count < newTree.GetFrames().Array.Length; i++) 2367for (var i = 0; oldTree.GetFrames().Count < oldTree.GetFrames().Array.Length; i++) 2372for (var i = 0; newTree.GetFrames().Count < newTree.GetFrames().Array.Length; i++) 2404Assert.Equal(1, diffsInBatch.Count);
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
15return new ArraySegment<T>(source.Array, 0, source.Count);
src\Components\Shared\test\TestRenderer.cs (1)
118for (var i = 0; i < renderBatch.UpdatedComponents.Count; i++)
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
40RenderFrames(componentId, output, frames, 0, frames.Count);
Microsoft.AspNetCore.Components.Web.Tests (2)
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
15return new ArraySegment<T>(source.Array, 0, source.Count);
src\Components\Shared\test\TestRenderer.cs (1)
118for (var i = 0; i < renderBatch.UpdatedComponents.Count; i++)
Microsoft.AspNetCore.Components.WebView (6)
src\Components\Shared\src\RenderBatchWriter.cs (6)
64var count = diffs.Count; 121var count = frames.Count; 208_binaryWriter.Write(numbers.Count); 211var count = numbers.Count; 223_binaryWriter.Write(numbers.Count); 226var count = numbers.Count;
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\TestDocument.cs (3)
28for (var i = 0; i < batch.UpdatedComponents.Count; i++) 36for (var i = 0; i < batch.DisposedComponentIDs.Count; i++) 41for (var i = 0; i < batch.DisposedEventHandlerIDs.Count; i++)