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