Update CacheObject.cs

This commit is contained in:
sinaioutlander 2020-08-22 19:36:06 +10:00
parent 6bafab785b
commit 19263092fe

View File

@ -73,23 +73,6 @@ namespace Explorer
holder.DeclaringType = memberInfo.DeclaringType;
holder.DeclaringInstance = declaringInstance;
//if (declaringInstance is Il2CppSystem.Object ilInstance && ilInstance.GetType() != memberInfo.DeclaringType)
//{
// try
// {
// holder.DeclaringInstance = ilInstance.Il2CppCast(holder.DeclaringType);
// }
// catch (Exception e)
// {
// holder.ReflectionException = ReflectionHelpers.ExceptionToString(e);
// holder.DeclaringInstance = declaringInstance;
// }
//}
//else
//{
// holder.DeclaringInstance = declaringInstance;
//}
if (memberInfo.MemberType == MemberTypes.Field)
{
holder.MemberInfoType = ReflectionWindow.MemberInfoType.Field;