public void Start() { try { if (kwargs != null) { Ops.CallWithArgsTupleAndKeywordDict(func, new object[0], new string[0], args, kwargs); } else { Ops.CallWithArgsTuple(func, new object[0], args); } } catch (Exception e) { Ops.Print(context.SystemState, "Unhandled exception on thread"); Ops.Print(context.SystemState, e); } }
public static object Apply(ICallerContext context, object func, object args, object kws) { return(Ops.CallWithArgsTupleAndKeywordDict(func, new object[0], new string[0], args, kws)); }