示例#1
0
 public object Call(ScriptObject[] args)
 {
     if (m_Enumerator.MoveNext())
     {
         return(m_Enumerator.Current);
     }
     return(null);
 }
示例#2
0
 public object Call(ScriptObject[] args)
 {
     if (m_Enumerator.MoveNext())
     {
         ScriptTable table = m_Script.CreateTable();
         table.SetValue("key", m_Script.CreateObject(m_Index++));
         table.SetValue("value", m_Enumerator.Current);
         return(table);
     }
     return(null);
 }