This action will force synchronization from jobily/UnityExplorer, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
using UnityExplorer.Inspectors;namespace UnityExplorer.CacheObject{public class CacheMethod : CacheMember{public MethodInfo MethodInfo { get; }public override Type DeclaringType => MethodInfo.DeclaringType;public override bool CanWrite => false;public override bool IsStatic => MethodInfo.IsStatic;public override bool ShouldAutoEvaluate => false;public CacheMethod(MethodInfo mi){this.MethodInfo = mi;}public override void SetInspectorOwner(ReflectionInspector inspector, MemberInfo member){base.SetInspectorOwner(inspector, member);Arguments = MethodInfo.GetParameters();if (MethodInfo.IsGenericMethod)GenericArguments = MethodInfo.GetGenericArguments();}protected override object TryEvaluate(){try{MethodInfo methodInfo = MethodInfo;if (methodInfo.IsGenericMethod)methodInfo = MethodInfo.MakeGenericMethod(Evaluator.TryParseGenericArguments());object ret;if (HasArguments)ret = methodInfo.Invoke(DeclaringInstance, Evaluator.TryParseArguments());elseret = methodInfo.Invoke(DeclaringInstance, ArgumentUtility.EmptyArgs);LastException = null;return ret;}catch (Exception ex){LastException = ex;return null;}}protected override void TrySetValue(object value) => throw new NotImplementedException("You can't set a method");}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。