Test.Function.OnInvoke C# (CSharp) Méthode

OnInvoke() protected méthode

protected OnInvoke ( Lua state, object args ) : object[]
state LuaSharp.Lua
args object
Résultat object[]
        protected override object[] OnInvoke( Lua state, object[] args)
        {
            LuaFunction print = state["print"] as LuaFunction;
            print.Call( string.Format( "CLR function called with: {0}", args[0] ) );
            throw new Exception("Some CLR error.");
            return new object[] { "Test" };
        }