mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 16:40:26 +02:00
Deprecated DeleteAndClearItems
This commit is contained in:
parent
bd57172996
commit
1be37e6f24
8 changed files with 17 additions and 7 deletions
|
@ -152,6 +152,8 @@ static
|
|||
}
|
||||
}
|
||||
|
||||
[NoShow]
|
||||
[Warn("This mixin has been replaced by ClearAndDeleteItems")]
|
||||
public static mixin DeleteAndClearItems(var container)
|
||||
{
|
||||
for (var value in container)
|
||||
|
@ -159,6 +161,13 @@ static
|
|||
container.Clear();
|
||||
}
|
||||
|
||||
public static mixin ClearAndDeleteItems(var container)
|
||||
{
|
||||
for (var value in container)
|
||||
delete value;
|
||||
container.Clear();
|
||||
}
|
||||
|
||||
public static void ClearAndDeleteItems<T>(List<T> container) where T : var
|
||||
{
|
||||
for (var value in container)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue