mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 19:48:01 +02:00
DeleteDictionaryAndItems
This commit is contained in:
parent
f928b93644
commit
fe74d58958
1 changed files with 12 additions and 0 deletions
|
@ -187,6 +187,18 @@ static
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static mixin DeleteDictionaryAndItems(var container)
|
||||||
|
{
|
||||||
|
if (container != null)
|
||||||
|
{
|
||||||
|
for (var value in container)
|
||||||
|
{
|
||||||
|
delete value.value;
|
||||||
|
}
|
||||||
|
delete container;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static mixin DeleteDictionaryAndKeysAndItems(var container)
|
public static mixin DeleteDictionaryAndKeysAndItems(var container)
|
||||||
{
|
{
|
||||||
if (container != null)
|
if (container != null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue