diff --git a/BeefLibs/corlib/src/System.bf b/BeefLibs/corlib/src/System.bf index d7c6f7ef..53a2731b 100644 --- a/BeefLibs/corlib/src/System.bf +++ b/BeefLibs/corlib/src/System.bf @@ -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) { if (container != null)