[Ironruby-core] IronRuby hosting - executing C# method
lists at ruby-forum.com
Tue Nov 20 20:25:00 UTC 2012
I have some issue with hosting IronRuby in C# application.
I've created Ruby ScriptEngine, created ScriptScope with delegate in it:
> scope.SetVariable("func", new Action<object>(MyMethod));
but can't execute "func" from script
fails with ArgumentException "wrong number of arguments (1 for 0)"
but can run it by calling "invoke":
is it possible to execute Delegate like normal ruby function?
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core