コード例 #1
0
ファイル: Table.cs プロジェクト: weimingtom/MonoBoxedLua
 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();
 }