using BootstrapBlazor.Components;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Localization;
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using UI.Data;
namespace UI.Components.Pages {
///
///
///
public partial class TableDemo : ComponentBase {
[Inject]
[NotNull]
private IStringLocalizer? Localizer { get; set; }
private readonly ConcurrentDictionary> _cache = new();
private IEnumerable GetHobbys(Foo item) => _cache.GetOrAdd(item, f => Foo.GenerateHobbys(Localizer));
///
///
///
private static IEnumerable PageItemsSource => new int[] { 20, 40 };
}
}