thanks but it desnt work correctly.
i use this:
it throws an Comexception when i run the script who is calling the function via:
i use this:
var mf = new MethodFunc(me.Invoke); se.AddHostObject(mi.Name, mf);
var host = new HostFunctions(); ((IScriptableObject)host).OnExposedToScriptCode(e); var del = (Delegate)host.func<object>(p.Length, e.Script[func]); return del.DynamicInvoke(p); // here is the Exception
return filesize("Std.dll");