示例#1
0
 static void recursiveClear(LuaTable table)
 {
     table.ForEachV((k, v) =>
     {
         var t = v as LuaTable;
         if (t != null)
         {
             recursiveClear(t);
         }
     });
     table.Clear();
     Assert.AreEqual(0, table.Count());
     table.Dispose();
 }