PetroProtsyk/SSharp — Issue #23: Arguments are not passed to GetMethod in IScriptable
Author: PetroProtsyk
Created: 2011-12-10 18:56:15+00:00
State: open

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);