Skip to content

Instantly share code, notes, and snippets.

View Dankann's full-sized avatar
🏠
Working from home

Dankann Weissmüller Dankann

🏠
Working from home
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using System;
public static class ListExtensions
{
public static List<T> AddUnique<T>(this List<T> list, T item)
{
if(!list.Contains(item))
list.Add(item);
@Dankann
Dankann / TaskExtensions.cs
Created February 1, 2021 11:43
Task Extensions
using System;
using System.Threading;
using System.Threading.Tasks;
public static class TaskExtensions
{
public static async void FireAndForgetAsync(this Task task)
{
try
{