1 write to Array
Microsoft.AspNetCore.Components (1)
RenderTree\ArrayRange.cs (1)
32Array = array;
122 references to Array
Microsoft.AspNetCore.Components (9)
Rendering\RenderTreeUpdater.cs (2)
21var framesArray = frames.Array; 86framesArray = renderTreeBuilder.GetFrames().Array; // Refresh in case it mutated due to the expansion
RenderTree\ArrayRange.cs (1)
43System.Array.Copy(Array, buffer, Count);
RenderTree\Renderer.cs (3)
826var updatedComponentsArray = updatedComponents.Array; 836var array = updatedComponents.Array; 1003var array = eventHandlerIds.Array;
RenderTree\RenderTreeDiffBuilder.cs (3)
31var diffContext = new DiffContext(renderer, batchBuilder, componentId, oldTree.Array, newTree.Array); 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)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.Endpoints (5)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (4)
89var changesArray = changes.Array; 113var changesArray = changes.Array; 150ref var frame = ref frames.Array[frameIndex]; 166ref var candidate = ref frames.Array[i];
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
134var componentId = renderBatch.UpdatedComponents.Array[i].ComponentId;
Microsoft.AspNetCore.Components.Endpoints.Tests (31)
ImportMapTest.cs (31)
68Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 69Assert.Equal("script", frames.Array[0].ElementName); 70Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 71Assert.Equal("type", frames.Array[1].AttributeName); 72Assert.Equal("importmap", frames.Array[1].AttributeValue); 73Assert.Equal("nonce", frames.Array[2].AttributeName); 74Assert.Equal("random", frames.Array[2].AttributeValue); 75Assert.Equal(RenderTreeFrameType.Markup, frames.Array[3].FrameType); 76Assert.Equal(importMapDefinition.ToJson(), frames.Array[3].TextContent); 115Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 116Assert.Equal("script", frames.Array[0].ElementName); 117Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 118Assert.Equal("type", frames.Array[1].AttributeName); 119Assert.Equal("importmap", frames.Array[1].AttributeValue); 120Assert.Equal(RenderTreeFrameType.Markup, frames.Array[2].FrameType); 121Assert.Equal(importMapDefinition.ToJson(), frames.Array[2].TextContent); 180Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 181Assert.Equal("script", frames.Array[0].ElementName); 182Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 183Assert.Equal("type", frames.Array[1].AttributeName); 184Assert.Equal("importmap", frames.Array[1].AttributeValue); 185Assert.Equal(RenderTreeFrameType.Markup, frames.Array[2].FrameType); 186Assert.Equal(otherImportMapDefinition.ToJson(), frames.Array[2].TextContent); 235Assert.Equal(0, _renderer.CapturedBatch.UpdatedComponents.Array[0].Edits.Count); 239Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 240Assert.Equal("script", frames.Array[0].ElementName); 241Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 242Assert.Equal("type", frames.Array[1].AttributeName); 243Assert.Equal("importmap", frames.Array[1].AttributeValue); 244Assert.Equal(RenderTreeFrameType.Markup, frames.Array[2].FrameType); 245Assert.Equal(importMapDefinition.ToJson(), frames.Array[2].TextContent);
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)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.Server (4)
src\Components\Shared\src\RenderBatchWriter.cs (4)
66var array = diffs.Array; 120var array = frames.Array; 210var array = numbers.Array; 225var array = numbers.Array;
Microsoft.AspNetCore.Components.Tests (45)
ParameterViewTest.Assignment.cs (1)
762var view = new ParameterView(ParameterViewLifetime.Unbound, builder.GetFrames().Array, ownerIndex: 0);
RendererTest.cs (2)
4453var capturingComponent = (ParameterViewIllegalCapturingComponent)renderer.GetCurrentRenderTreeFrames(rootComponentId).Array[0].Component; 4484var capturingComponent = (ImplicitConversionComponent)renderer.GetCurrentRenderTreeFrames(rootComponentId).Array[0].Component;
Rendering\RenderTreeBuilderTest.cs (3)
21Assert.NotNull(frames.Array); 168AssertFrame.Element(frames.Array[1], "my element", 1); 187AssertFrame.Element(frames.Array[0], "my element", 3);
RenderTreeDiffBuilderTest.cs (23)
240Assert.Collection(batchBuilder.UpdatedComponents.Array[0].Edits, 925var removedEventHandlerFrame = oldTree.GetFrames().Array[2]; 1580AssertFrame.ComponentWithInstance<FakeComponent>(renderBatch.ReferenceFrames.Array[0], 0, null, 12); 1581AssertFrame.ComponentWithInstance<FakeComponent2>(renderBatch.ReferenceFrames.Array[1], 1, null, 13); 1601var rootComponentDiff = renderBatch.UpdatedComponents.Array[0]; 1631var originalFakeComponentInstance = oldTree.GetFrames().Array[2].Component; 1632var originalFakeComponent2Instance = oldTree.GetFrames().Array[3].Component; 1636var newFrame1 = newTree.GetFrames().Array[2]; 1637var newFrame2 = newTree.GetFrames().Array[3]; 1661var oldAttributeFrame = oldTree.GetFrames().Array[1]; 1662var newAttributeFrame = newTree.GetFrames().Array[1]; 1688var oldAttributeFrame = oldTree.GetFrames().Array[1]; 1689var newAttributeFrame = newTree.GetFrames().Array[2]; 1717var originalComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].Component; 1721var newComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].Component; 1772var originalComponentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].Component; 1777var newComponentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].Component; 1802var componentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].Component; 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++) 2405return (diffsInBatch.Array[0], batch.ReferenceFrames.AsEnumerable().ToArray(), batch);
RenderTreeUpdaterTest.cs (14)
25frames.Array[1] = frames.Array[1].WithAttributeEventHandlerId(123); // An unrelated event 53frames.Array[1] = frames.Array[1].WithAttributeEventHandlerId(123); // An unrelated event 85frames.Array[1] = frames.Array[1].WithAttributeEventHandlerId(123); // An unrelated event 86frames.Array[4] = frames.Array[4].WithAttributeEventHandlerId(456); 115frames.Array[1] = frames.Array[1].WithAttributeEventHandlerId(123); 140frames.Array[1] = frames.Array[1].WithAttributeEventHandlerId(123); 170frames.Array[4] = frames.Array[4].WithAttributeEventHandlerId(123);
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
15return new ArraySegment<T>(source.Array, 0, source.Count);
src\Components\Shared\test\TestRenderer.cs (1)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.Web (7)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (7)
76ref var frame = ref frames.Array[position]; 106ref var frame = ref frames.Array[position]; 205ref var namedEventFrame = ref frames.Array[namedEventFramePosition]; 209ref var enclosingElementFrame = ref frames.Array[enclosingElementFrameIndex]; 262if (frames.Array[frameIndex].FrameType == RenderTreeFrameType.Element) 294ref var frame = ref frames.Array[candidateIndex]; 389ref var frame = ref frames.Array[position];
Microsoft.AspNetCore.Components.Web.Tests (3)
Forms\InputNumberTest.cs (1)
88var typeAttributeFrame = frames.Array.Single(frame =>
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
15return new ArraySegment<T>(source.Array, 0, source.Count);
src\Components\Shared\test\TestRenderer.cs (1)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.WebView (4)
src\Components\Shared\src\RenderBatchWriter.cs (4)
66var array = diffs.Array; 120var array = frames.Array; 210var array = numbers.Array; 225var array = numbers.Array;
Microsoft.AspNetCore.Components.WebView.Test (10)
Infrastructure\TestDocument.cs (10)
30var diff = batch.UpdatedComponents.Array[i]; 38DisposeComponent(batch.DisposedComponentIDs.Array[i]); 43DisposeEventHandler(batch.DisposedEventHandlerIDs.Array[i]); 81var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex]; 83InsertFrame(batch, parent, childIndexAtCurrentDepth + siblingIndex, batch.ReferenceFrames.Array, frame, edit.ReferenceFrameIndex); 96var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex]; 136var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex]; 152var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex]; 275var frame = batch.ReferenceFrames.Array[index]; 296var descendantFrame = batch.ReferenceFrames.Array[i];