@this.ViewModel.OptionInstance?.Type.Name

@if (this.ViewModel.OptionInstance is not null) {
@foreach (var property in this.ViewModel.OptionInstance.Type.Properties) { @if (!property.IsVisible) { continue; } @if (property.ValuesFactory is not null) { var values = property.ValuesFactory(); } else if (property.Type == typeof(bool)) { } else if (property.Type == typeof(int) || property.Type == typeof(uint) || property.Type == typeof(long) || property.Type == typeof(ulong) || property.Type == typeof(short) || property.Type == typeof(ushort) || property.Type == typeof(float) || property.Type == typeof(double)) { @if (property.Validator is not null) { } else { } } else { } }
}
@page "/options/{optionName}" @inherits ViewBase @code { [Parameter] public required string OptionName { get; set; } protected override Task OnParametersSetAsync() { this.ViewModel.Initialize(CancellationToken.None); return base.OnParametersSetAsync(); } }