Revert a temporary attempt at fixing a crash

This commit is contained in:
sinaioutlander 2020-11-10 20:30:22 +11:00
parent f87b06989d
commit ca90b64378

View File

@ -54,19 +54,9 @@ namespace UnityExplorer.Inspectors.Reflection
{
var pType = param.ParameterType;
if (pType.IsByRef && !pType.IsPrimitive && pType != typeof(string))
if (pType.IsByRef && pType.HasElementType)
{
if (pType.IsArray || pType.Name.Contains("Array"))
return false;
try
{
pType = pType.GetElementType();
}
catch
{
return false;
}
pType = pType.GetElementType();
}
if (pType != null && (pType.IsPrimitive || pType == typeof(string)))