예제 #1
0
        public ScriptArray GetKeys()
        {
            ScriptArray ret = Script.CreateArray();

            foreach (KeyValuePair <object, ScriptObject> pair in m_listObject)
            {
                ret.Add(Script.CreateObject(pair.Key));
            }
            return(ret);
        }
예제 #2
0
        public ScriptArray GetValues()
        {
            ScriptArray ret = Script.CreateArray();

            foreach (KeyValuePair <object, ScriptObject> pair in m_listObject)
            {
                ret.Add(pair.Value.Assign());
            }
            return(ret);
        }
예제 #3
0
        public ScriptArray GetKeys(Script script)
        {
            var ret = new ScriptArray(script);

            foreach (var pair in m_Values)
            {
                ret.Add(ScriptValue.CreateValue(pair.Key));
            }
            return(ret);
        }
예제 #4
0
        public ScriptArray GetValues()
        {
            var ret = new ScriptArray(m_Script);

            foreach (var pair in m_Objects)
            {
                ret.Add(pair.Value);
            }
            return(ret);
        }
예제 #5
0
        public ScriptArray GetKeys()
        {
            var ret = new ScriptArray(m_Script);

            foreach (var pair in m_Objects)
            {
                ret.Add(ScriptValue.CreateValue(pair.Key));
            }
            return(ret);
        }
예제 #6
0
        public ScriptArray GetValues()
        {
            ScriptArray array = base.m_Script.CreateArray();

            foreach (KeyValuePair <object, ScriptObject> pair in this.m_listObject)
            {
                array.Add(pair.Value.Assign());
            }
            return(array);
        }
예제 #7
0
        public ScriptArray GetKeys()
        {
            ScriptArray array = base.m_Script.CreateArray();

            foreach (KeyValuePair <object, ScriptObject> pair in this.m_listObject)
            {
                array.Add(base.m_Script.CreateObject(pair.Key));
            }
            return(array);
        }