Skip to content
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
// <auto-generated/>
#pragma warning disable 1591
namespace BlazorTest.Components
{
#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
using System.Net.Http

#nullable disable
;
#nullable restore
using System.Net.Http.Json

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Forms

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Routing

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Web

#nullable disable
;
#nullable restore
using static Microsoft.AspNetCore.Components.Web.RenderMode

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Web.Virtualization

#nullable disable
;
#nullable restore
using Microsoft.JSInterop

#nullable disable
;
#nullable restore
using BlazorTest

#nullable disable
;
#nullable restore
using BlazorTest.Components

#line default
#line hidden
#nullable disable
;
[global::BlazorTest.Components.MyInput.__PrivateComponentRenderModeAttribute]
#nullable restore
public partial class MyInput : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.OpenElement(0, "input");
__builder.AddAttribute(1, "value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore
Param1

#line default
#line hidden
#nullable disable
));
__builder.AddAttribute(2, "onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value =>
{
Param1 = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback:
#nullable restore
Fire

#line default
#line hidden
#nullable disable
);
}, value: Param1), Param1));
__builder.SetUpdatesAttributeName("value");
__builder.CloseElement();
}
#pragma warning restore 1998
#nullable restore

[Parameter]
public string? Param1 { get; set; } = "";

[Parameter]
public EventCallback<string?> ValueChanged { get; set; }

[Parameter]
public EventCallback<string?> Param1Changed { get; set; }

private void Fire()
{
ValueChanged.InvokeAsync(Param1);
Param1Changed.InvokeAsync(Param1);
}

#line default
#line hidden
#nullable disable

private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
{
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => InteractiveServer
;
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
}
}
}
#pragma warning restore 1591
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
// <auto-generated/>
#pragma warning disable 1591
namespace BlazorTest.Components
{
#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
using System.Net.Http

#nullable disable
;
#nullable restore
using System.Net.Http.Json

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Forms

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Routing

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Web

#nullable disable
;
#nullable restore
using static Microsoft.AspNetCore.Components.Web.RenderMode

#nullable disable
;
#nullable restore
using Microsoft.AspNetCore.Components.Web.Virtualization

#nullable disable
;
#nullable restore
using Microsoft.JSInterop

#nullable disable
;
#nullable restore
using BlazorTest

#nullable disable
;
#nullable restore
using BlazorTest.Components

#line default
#line hidden
#nullable disable
;
[global::BlazorTest.Components.MyOutput.__PrivateComponentRenderModeAttribute]
#nullable restore
public partial class MyOutput : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.OpenElement(0, "div");
__builder.OpenElement(1, "p");
__builder.AddContent(2, "Value from InputText: ");
__builder.AddContent(3,
#nullable restore
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.AddMarkupContent(4, "\n ");
__builder.OpenElement(5, "p");
__builder.AddContent(6, "Raw value from InputText: ");
__builder.AddContent(7,
#nullable restore
new MarkupString(Value)

#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.CloseElement();
}
#pragma warning restore 1998
#nullable restore

[Parameter]
public string Value { get; set; } = "";

#line default
#line hidden
#nullable disable

private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
{
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => InteractiveServer
;
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
}
}
}
#pragma warning restore 1591
Loading