1
This commit is contained in:
@@ -167,6 +167,13 @@ namespace BITKit
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static IEnumerable<T> RemoveIn<T>(this IEnumerable<T> self, T t)
|
||||
{
|
||||
var list = self.ToList();
|
||||
list.Remove(t);
|
||||
return list.ToArray();
|
||||
}
|
||||
public static bool TryRemove<TKey, TValue>(this IDictionary<TKey, TValue> self, TKey t)
|
||||
{
|
||||
if (self.ContainsKey(t))
|
||||
|
Reference in New Issue
Block a user