AjTalk.Language.Block.Execute C# (CSharp) Method

Execute() public method

public Execute ( System.Machine machine, object args ) : object
machine System.Machine
args object
return object
        public virtual object Execute(Machine machine, object[] args)
        {
            return new Interpreter(this.CreateContext(machine, args)).Execute();
        }

Usage Example

Example #1
0
        public void CompileAndExecuteGetDotNetType()
        {
            Block block;

            block = new Block();
            block.CompileGetDotNetType("System.IO.FileInfo");
            block.CompileByteCode(ByteCode.ReturnPop);

            object obj = block.Execute(null, null);

            Assert.IsNotNull(obj);
            Assert.IsInstanceOfType(obj, typeof(System.Type));
        }
All Usage Examples Of AjTalk.Language.Block::Execute