mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 00:50:25 +02:00
Improved QuickFind behavior
This commit is contained in:
parent
90d1891cf1
commit
b6e2be1e99
7 changed files with 123 additions and 44 deletions
|
@ -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)
|
||||
|
|
|
@ -697,4 +697,14 @@ namespace System.Collections
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension Queue<T> where T : delete
|
||||
{
|
||||
public void ClearAndDeleteItems()
|
||||
{
|
||||
for (var item in this)
|
||||
delete item;
|
||||
Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue