AjTalk.Hosting.Host.Invoke C# (CSharp) Method

Invoke() public method

public Invoke ( IObject obj, string msgname, object args ) : object
obj IObject
msgname string
args object
return object
        public object Invoke(IObject obj, string msgname, object[] args)
        {
            Machine current = Machine.Current;

            try
            {
                this.machine.SetCurrent();

                // TODO Review if use this.machine
                return obj.SendMessage(this.machine, msgname, args);
            }
            finally
            {
                Machine.SetCurrent(current);
            }
        }