|
#pragma checksum "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8cd47a7a5643be9701c7f0ad33c7f615c8f38e9c3c8c930f15c13c2588253175"
// <auto-generated/>
#pragma warning disable 1591
namespace Wasm.Performance.TestApp.Pages
{
#line default
using global::System;
using global::System.Collections.Generic;
using global::System.Linq;
using global::System.Threading.Tasks;
using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,23) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using System.Net.Http
#nullable disable
;
#nullable restore
#line (2,2)-(2,47) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing
#nullable disable
;
#nullable restore
#line (3,2)-(3,45) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms
#nullable disable
;
#nullable restore
#line (4,2)-(4,43) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Web
#nullable disable
;
#nullable restore
#line (5,2)-(5,27) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.JSInterop
#nullable disable
;
#nullable restore
#line (6,2)-(6,32) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Wasm.Performance.TestApp
#nullable disable
;
#nullable restore
#line (7,2)-(7,39) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Wasm.Performance.TestApp.Shared
#nullable disable
;
#nullable restore
#line (3,2)-(3,48) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
using Wasm.Performance.TestApp.Shared.FastGrid
#nullable disable
;
#line default
#line hidden
[global::Microsoft.AspNetCore.Components.LayoutAttribute(typeof(
#nullable restore
#line (1,9)-(1,19) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\_Imports.razor"
MainLayout
#line default
#line hidden
#nullable disable
))]
[global::Microsoft.AspNetCore.Components.RouteAttribute(
// language=Route,Component
#nullable restore
#line (1,7)-(1,23) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
"/gridrendering"
#line default
#line hidden
#nullable disable
)]
#nullable restore
public partial class GridRendering : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.AddMarkupContent(0, "<h1>20 x 200 Grid</h1>\r\n\r\n");
__builder.OpenElement(1, "fieldset");
__builder.OpenElement(2, "select");
__builder.AddAttribute(3, "id", "render-mode");
__builder.AddAttribute(4, "value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore
#line (8,37)-(8,55) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
SelectedRenderMode
#line default
#line hidden
#nullable disable
));
__builder.AddAttribute(5, "onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => SelectedRenderMode = __value, SelectedRenderMode));
__builder.SetUpdatesAttributeName("value");
__builder.OpenElement(6, "option");
#nullable restore
#line (9,18)-(9,41) 24 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder.AddContent(7, GridRenderMode.FastGrid
#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.AddMarkupContent(8, "\r\n ");
__builder.OpenElement(9, "option");
#nullable restore
#line (10,18)-(10,43) 25 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder.AddContent(10, GridRenderMode.PlainTable
#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.AddMarkupContent(11, "\r\n ");
__builder.OpenElement(12, "option");
#nullable restore
#line (11,18)-(11,45) 25 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder.AddContent(13, GridRenderMode.ComplexTable
#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.CloseElement();
__builder.AddMarkupContent(14, "\r\n\r\n ");
__builder.OpenElement(15, "button");
__builder.AddAttribute(16, "id", "show");
__builder.AddAttribute(17, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore
#line (14,33)-(14,37) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Show
#line default
#line hidden
#nullable disable
));
__builder.AddContent(18, "Show");
__builder.CloseElement();
__builder.AddMarkupContent(19, "\r\n ");
__builder.OpenElement(20, "button");
__builder.AddAttribute(21, "id", "hide");
__builder.AddAttribute(22, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore
#line (15,33)-(15,37) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Hide
#line default
#line hidden
#nullable disable
));
__builder.AddContent(23, "Hide");
__builder.CloseElement();
#nullable restore
#line (16,1)-(16,5) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
#line default
#line hidden
#nullable disable
#nullable restore
#line (16,6)-(18,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
if (forecasts != null)
{
#line default
#line hidden
#nullable disable
__builder.OpenElement(24, "button");
__builder.AddAttribute(25, "id", "change-page");
__builder.AddAttribute(26, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore
#line (18,44)-(18,54) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
ChangePage
#line default
#line hidden
#nullable disable
));
__builder.AddContent(27, "Switch pages");
__builder.CloseElement();
#nullable restore
#line (19,1)-(20,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
}
#line default
#line hidden
#nullable disable
__builder.CloseElement();
#nullable restore
#line (22,2)-(24,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
if (forecasts == null)
{
#line default
#line hidden
#nullable disable
__builder.AddMarkupContent(28, "<p><em>(No data assigned)</em></p>");
#nullable restore
#line (25,1)-(28,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
}
else if (SelectedRenderMode == GridRenderMode.FastGrid)
{
#line default
#line hidden
#nullable disable
__builder.AddMarkupContent(29, "<p>FastGrid represents a minimal, optimized implementation of a grid.</p>");
#nullable restore
#line (29,1)-(30,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
#line default
#line hidden
#nullable disable
global::__Blazor.Wasm.Performance.TestApp.Pages.GridRendering.TypeInference.CreateGrid_0(__builder, 30, 31,
#nullable restore
#line (30,18)-(30,27) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
forecasts
#line default
#line hidden
#nullable disable
, 32, (__builder2) => {
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (31,31)-(31,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(33);
__builder2.AddComponentParameter(34, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (31,48)-(31,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Date");
__builder2.AddAttribute(35, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (31,62)-(31,94) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(36, context.Date.ToShortDateString()
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(37, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (32,31)-(32,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(38);
__builder2.AddComponentParameter(39, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (32,48)-(32,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureC");
__builder2.AddAttribute(40, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (32,70)-(32,90) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(41, context.TemperatureC
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(42, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (33,31)-(33,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(43);
__builder2.AddComponentParameter(44, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (33,48)-(33,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureF");
__builder2.AddAttribute(45, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (33,70)-(33,90) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(46, context.TemperatureF
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(47, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (34,31)-(34,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(48);
__builder2.AddComponentParameter(49, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (34,48)-(34,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Summary");
__builder2.AddAttribute(50, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (34,65)-(34,80) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(51, context.Summary
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(52, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (35,31)-(35,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(53);
__builder2.AddComponentParameter(54, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (35,48)-(35,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Date");
__builder2.AddAttribute(55, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (35,62)-(35,94) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(56, context.Date.ToShortDateString()
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(57, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (36,31)-(36,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(58);
__builder2.AddComponentParameter(59, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (36,48)-(36,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureC");
__builder2.AddAttribute(60, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (36,70)-(36,90) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(61, context.TemperatureC
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(62, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (37,31)-(37,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(63);
__builder2.AddComponentParameter(64, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (37,48)-(37,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureF");
__builder2.AddAttribute(65, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (37,70)-(37,90) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(66, context.TemperatureF
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(67, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (38,31)-(38,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(68);
__builder2.AddComponentParameter(69, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (38,48)-(38,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Summary");
__builder2.AddAttribute(70, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (38,65)-(38,80) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(71, context.Summary
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(72, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (39,31)-(39,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(73);
__builder2.AddComponentParameter(74, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (39,48)-(39,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Date");
__builder2.AddAttribute(75, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (39,62)-(39,94) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(76, context.Date.ToShortDateString()
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(77, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (40,31)-(40,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(78);
__builder2.AddComponentParameter(79, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (40,48)-(40,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureC");
__builder2.AddAttribute(80, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (40,70)-(40,90) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(81, context.TemperatureC
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(82, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (41,31)-(41,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(83);
__builder2.AddComponentParameter(84, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (41,48)-(41,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureF");
__builder2.AddAttribute(85, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (41,70)-(41,90) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(86, context.TemperatureF
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(87, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (42,31)-(42,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(88);
__builder2.AddComponentParameter(89, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (42,48)-(42,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Summary");
__builder2.AddAttribute(90, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (42,65)-(42,80) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(91, context.Summary
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(92, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (43,31)-(43,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(93);
__builder2.AddComponentParameter(94, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (43,48)-(43,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Date");
__builder2.AddAttribute(95, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (43,62)-(43,94) 26 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(96, context.Date.ToShortDateString()
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(97, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (44,31)-(44,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(98);
__builder2.AddComponentParameter(99, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (44,48)-(44,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureC");
__builder2.AddAttribute(100, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (44,70)-(44,90) 27 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(101, context.TemperatureC
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(102, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (45,31)-(45,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(103);
__builder2.AddComponentParameter(104, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (45,48)-(45,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureF");
__builder2.AddAttribute(105, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (45,70)-(45,90) 27 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(106, context.TemperatureF
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(107, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (46,31)-(46,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(108);
__builder2.AddComponentParameter(109, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (46,48)-(46,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Summary");
__builder2.AddAttribute(110, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (46,65)-(46,80) 27 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(111, context.Summary
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(112, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (47,31)-(47,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(113);
__builder2.AddComponentParameter(114, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (47,48)-(47,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Date");
__builder2.AddAttribute(115, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (47,62)-(47,94) 27 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(116, context.Date.ToShortDateString()
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(117, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (48,31)-(48,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(118);
__builder2.AddComponentParameter(119, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (48,48)-(48,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureC");
__builder2.AddAttribute(120, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (48,70)-(48,90) 27 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(121, context.TemperatureC
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(122, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (49,31)-(49,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(123);
__builder2.AddComponentParameter(124, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (49,48)-(49,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "TemperatureF");
__builder2.AddAttribute(125, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (49,70)-(49,90) 27 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(126, context.TemperatureF
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(127, "\r\n ");
__builder2.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<
#nullable restore
#line (50,31)-(50,46) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
WeatherForecast
#line default
#line hidden
#nullable disable
>>(128);
__builder2.AddComponentParameter(129, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.GridColumn<WeatherForecast>.
#nullable restore
#line (50,48)-(50,53) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Title
#line default
#line hidden
#nullable disable
), "Summary");
__builder2.AddAttribute(130, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<WeatherForecast>)((context) => (__builder3) => {
#nullable restore
#line (50,65)-(50,80) 27 "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
__builder3.AddContent(131, context.Summary
#line default
#line hidden
#nullable disable
);
}
));
__builder2.CloseComponent();
}
);
#nullable restore
#line (52,1)-(55,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
}
else if (SelectedRenderMode == GridRenderMode.PlainTable)
{
#line default
#line hidden
#nullable disable
__builder.AddMarkupContent(132, "<p>PlainTable represents a minimal but not optimized implementation of a grid.</p>");
#nullable restore
#line (56,1)-(57,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
#line default
#line hidden
#nullable disable
__builder.OpenComponent<global::Wasm.Performance.TestApp.Shared.PlainTable.TableComponent>(133);
__builder.AddComponentParameter(134, nameof(global::Wasm.Performance.TestApp.Shared.PlainTable.TableComponent.
#nullable restore
#line (57,64)-(57,68) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Data
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Wasm.Performance.TestApp.Pages.GridRendering.WeatherForecast[]>(
#nullable restore
#line (57,71)-(57,80) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
forecasts
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(135, nameof(global::Wasm.Performance.TestApp.Shared.PlainTable.TableComponent.
#nullable restore
#line (57,82)-(57,89) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Columns
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Collections.Generic.List<global::System.String>>(
#nullable restore
#line (57,92)-(57,99) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Columns
#line default
#line hidden
#nullable disable
));
__builder.CloseComponent();
#nullable restore
#line (58,1)-(61,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
}
else if (SelectedRenderMode == GridRenderMode.ComplexTable)
{
#line default
#line hidden
#nullable disable
__builder.AddMarkupContent(136, "<p>ComplexTable represents a maximal, not optimized implementation of a grid, using a wide range of Blazor features at once.</p>");
#nullable restore
#line (62,1)-(63,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
#line default
#line hidden
#nullable disable
__builder.OpenComponent<global::Wasm.Performance.TestApp.Shared.ComplexTable.TableComponent>(137);
__builder.AddComponentParameter(138, nameof(global::Wasm.Performance.TestApp.Shared.ComplexTable.TableComponent.
#nullable restore
#line (63,66)-(63,70) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Data
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Wasm.Performance.TestApp.Pages.GridRendering.WeatherForecast[]>(
#nullable restore
#line (63,73)-(63,82) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
forecasts
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(139, nameof(global::Wasm.Performance.TestApp.Shared.ComplexTable.TableComponent.
#nullable restore
#line (63,84)-(63,91) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Columns
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Collections.Generic.List<global::System.String>>(
#nullable restore
#line (63,94)-(63,101) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Columns
#line default
#line hidden
#nullable disable
));
__builder.CloseComponent();
#nullable restore
#line (64,1)-(65,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
}
#line default
#line hidden
#nullable disable
}
#pragma warning restore 1998
#nullable restore
#line (66,8)-(122,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
public enum GridRenderMode { PlainTable, ComplexTable, FastGrid }
public GridRenderMode SelectedRenderMode { get; set; } = GridRenderMode.FastGrid;
private WeatherForecast[] forecasts;
public List<string> Columns { get; set; } = new List<string>
{
"Date", "TemperatureC", "TemperatureF", "Summary",
"Date", "TemperatureC", "TemperatureF", "Summary",
"Date", "TemperatureC", "TemperatureF", "Summary",
"Date", "TemperatureC", "TemperatureF", "Summary",
"Date", "TemperatureC", "TemperatureF", "Summary",
};
private static string[] sampleSummaries = new[] { "Balmy", "Chilly", "Freezing", "Bracing" };
private static WeatherForecast[] staticSampleDataPage1 = Enumerable.Range(0, 200).Select(CreateSampleDataItem).ToArray();
private static WeatherForecast[] staticSampleDataPage2 = Enumerable.Range(200, 200).Select(CreateSampleDataItem).ToArray();
private static WeatherForecast CreateSampleDataItem(int index) => new WeatherForecast
{
Date = DateTime.Now.Date.AddDays(index),
Summary = sampleSummaries[index % sampleSummaries.Length],
TemperatureC = index,
};
public void Show()
{
forecasts = staticSampleDataPage1;
}
public void Hide()
{
forecasts = null;
}
public void ChangePage()
{
forecasts = (forecasts == staticSampleDataPage1) ? staticSampleDataPage2 : staticSampleDataPage1;
}
protected override void OnAfterRender(bool firstRender)
{
BenchmarkEvent.Send(JSRuntime, "Finished rendering table");
}
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public string Summary { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Components.InjectAttribute] private
#nullable restore
#line (2,9)-(2,19) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
IJSRuntime
#line default
#line hidden
#nullable disable
#nullable restore
#line (2,20)-(2,29) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
JSRuntime
#line default
#line hidden
#nullable disable
{ get; set; }
= default!;
}
}
namespace __Blazor.Wasm.Performance.TestApp.Pages.GridRendering
{
#line hidden
internal static class TypeInference
{
public static void CreateGrid_0<TRowData>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Collections.Generic.ICollection<TRowData> __arg0, int __seq1, global::Microsoft.AspNetCore.Components.RenderFragment __arg1)
{
__builder.OpenComponent<global::Wasm.Performance.TestApp.Shared.FastGrid.Grid<TRowData>>(seq);
__builder.AddComponentParameter(__seq0, nameof(global::Wasm.Performance.TestApp.Shared.FastGrid.Grid<TRowData>.
#nullable restore
#line (30,11)-(30,15) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\GridRendering.razor"
Data
#line default
#line hidden
#nullable disable
), __arg0);
__builder.AddComponentParameter(__seq1, "ChildContent", __arg1);
__builder.CloseComponent();
}
}
}
#pragma warning restore 1591
|