public bool MoveNext() { if (state.LuaNext(-2)) { current = new DictionaryEntry(); current.Key = state.ToVariant(-2); current.Value = state.ToVariant(-1); state.LuaPop(1); return(true); } else { current = new DictionaryEntry(); return(false); } }