IScriptable GetMethod, arguments are not passed

11 views
Skip to first unread message

Andrei

unread,
Nov 25, 2011, 6:49:21 AM11/25/11
to SSharp
Hi.

I am implementing my IScriptable object.
The arguments are not passed when GetMethod is called by the S#
framework
IBinding GetMethod(string name, params object[] arguments);

The problem is in the DefaultObjectBinding, where null is passed
instead of arguments:

public class DefaultObjectBinding : ObjectBinding, IObjectBinding
{
IBinding IObjectBinding.BindToMethod(object target, string
methodName, Type[] genericParameters, object[] arguments) {
var scriptable = target as IScriptable;
if (scriptable != null) {
var bind = scriptable.GetMethod(methodName, null);

Thanks.
Andrei.

piter....@gmail.com

unread,
Dec 10, 2011, 2:01:40 PM12/10/11
to SSharp
Reply all
Reply to author
Forward
0 new messages