1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 08:58:00 +02:00

Improved QuickFind behavior

This commit is contained in:
Brian Fiete 2022-03-01 06:11:28 -08:00
parent 90d1891cf1
commit b6e2be1e99
7 changed files with 123 additions and 44 deletions

View file

@ -1068,6 +1068,16 @@ namespace System.Collections
}
}
extension List<T> where T : delete
{
public void ClearAndDeleteItems()
{
for (var item in this)
delete item;
Clear();
}
}
extension List<T> where T : String
{
public bool Contains(T item, StringComparison comparison)

View file

@ -697,4 +697,14 @@ namespace System.Collections
}
}
}
extension Queue<T> where T : delete
{
public void ClearAndDeleteItems()
{
for (var item in this)
delete item;
Clear();
}
}
}