Skip to content

Instantly share code, notes, and snippets.

View Banyc's full-sized avatar
📚
READING BOOKS

IchHabeKeineNamen Banyc

📚
READING BOOKS
View GitHub Profile
@Banyc
Banyc / ConcurrentHashSet.cs
Created February 27, 2021 13:47
Concurrent HashSet
public class ConcurrentHashSet<T> : HashSet<T>
{
public new bool Add(T item)
{
lock (this)
{
return base.Add(item);
}
}
// ...
@page "/upload"
@using System.IO
@using System.Text
@using System.Net.Http.Headers
@using Tewr.Blazor.FileReader
@using Microsoft.Extensions.Configuration
@inject HttpClient httpClient
@inject NavigationManager NavigationManager
@inject IFileReaderService fileReaderService