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); } }
public bool MoveNext() { state.LuaRawGetI(-1, index); current = state.ToVariant(-1); state.LuaPop(1); ++index; return(current == null ? false : true); }