public static int UpdateLanguageConverter(IntPtr l) { if (l.istable(1)) { Dictionary <string, string> updatedMap = new Dictionary <string, string>(); l.pushnil(); while (l.next(1)) { string key, val; l.GetLua(-2, out key); l.GetLua(-1, out val); if (key != null) { updatedMap[key] = val; } l.pop(1); } LanguageConverter.UpdateDict(updatedMap); } return(0); }