Код: Выделить всё
@page "/select-props"
@{
CsvContent headers = new();
}
Properties picker
@foreach (var item in headers.Headers)
{
@if (item.Key is not null)
{
@item.Key
}
}
Submit
@code {
}
Код: Выделить всё
public class CsvContent
{
static Dictionary divider = new() { { 0, ',' }, { 1, ';' }, { 2, '\t' } };
public static List FileContent { get; set; }
public Dictionary? Headers { get; set; }
public static async Task/*
Подробнее здесь: [url]https://stackoverflow.com/questions/77062969/whats-wrong-with-blazors-inputcheckbox[/url]