using System.Collections.Concurrent; namespace PUSG.Web.Extensions { public static class UtilityExtensions { public static bool Delete(this ConcurrentDictionary dictionary, TKey key) { TValue result = default(TValue); return dictionary.TryRemove(key, out result); } } }