mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-04 20:42:22 +08:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
|
|
namespace UnityExplorer.UI.Inspectors.CacheObject
|
|
{
|
|
public class CacheMethod : CacheMember
|
|
{
|
|
public MethodInfo MethodInfo { get; internal set; }
|
|
|
|
public override bool ShouldAutoEvaluate => false;
|
|
|
|
public override void Initialize(ReflectionInspector inspector, Type declaringType, MemberInfo member, Type returnType)
|
|
{
|
|
base.Initialize(inspector, declaringType, member, returnType);
|
|
|
|
Arguments = MethodInfo.GetParameters();
|
|
}
|
|
|
|
protected override void TryEvaluate()
|
|
{
|
|
try
|
|
{
|
|
throw new NotImplementedException("TODO");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
HadException = true;
|
|
LastException = ex;
|
|
}
|
|
}
|
|
|
|
protected override void TrySetValue(object value) => throw new NotImplementedException("You can't set a method");
|
|
}
|
|
}
|