1
This commit is contained in:
@@ -154,12 +154,7 @@ namespace BITKit
|
||||
}
|
||||
public static bool TryRemove<TKey, TValue>(this IDictionary<TKey, TValue> self, TKey t)
|
||||
{
|
||||
if (self.ContainsKey(t))
|
||||
{
|
||||
self.Remove(t);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return self.ContainsKey(t) && self.Remove(t);
|
||||
}
|
||||
public static void Set<TKey, TValue>(this IDictionary<TKey, TValue> self, TKey key, TValue value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user