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