Exemplo n.º 1
0
        public ArrayInstance ToArray()
        {
            var result = Engine.Array.Construct();

            foreach (var scope in m_scopeCollection.OfType <Scope>())
            {
                ArrayInstance.Push(result, new ScopeInstance(Engine, scope));
            }

            return(result);
        }