Right, that won't work, assuming your code is as you posted it earlier.
merepresents a static method, first declare an appropriate delegate type:
Now you can expose a delegate that invokes the static method:
publicdelegateobject StaticMethodFunc(paramsobject args);
By the way, if
engine.AddHostObject(me.Name, new StaticMethodFunc(args => me.Invoke(null, args)));
merepresents an instance method, you can still expose a delegate that doesn't require an explicit target. All you have to do is provide the target in advance:
var target = Activator.CreateInstance(t); // or create the target some other way engine.AddHostObject(me.Name, new StaticMethodFunc(args => me.Invoke(target, args)));