Esempio n. 1
0
        static object TestOne(CLRSharp.IMethod method, bool LogStep = false, bool notry = false)
        {


            int debug = LogStep ? 9 : 0;
            if (CLRSharp.ThreadContext.activeContext == null)
            {
                CLRSharp.ThreadContext context = new CLRSharp.ThreadContext(env, debug);
            }
            CLRSharp.ThreadContext.activeContext.SetNoTry = notry;
            return method.Invoke(CLRSharp.ThreadContext.activeContext, null, null);
        }
Esempio n. 2
0
 void CallMethod(CLRSharp.IMethod method, object _this, params object[] _params)
 {
     CLRSharp.ThreadContext context = CLRSharp.ThreadContext.activeContext;
     method.Invoke(context, _this, _params);
 }