fix: fix the bug that MetaUtil.AppendIl2CppStackTraceNameOfTypeSig didn't support ElementType.Array

before-split
walon 2025-05-21 17:57:31 +08:00
parent b6cc07b54b
commit 1f29de26cf
1 changed files with 12 additions and 0 deletions

View File

@ -730,6 +730,18 @@ namespace Obfuz.Utils
sb.Append("[]"); sb.Append("[]");
break; break;
} }
case ElementType.Array:
{
var arraySig = (ArraySig)typeSig;
AppendIl2CppStackTraceNameOfTypeSig(sb, arraySig.Next);
sb.Append("[");
for (int i = 0; i < arraySig.Rank - 1; i++)
{
sb.Append(",");
}
sb.Append("]");
break;
}
default: default:
throw new NotSupportedException(typeSig.ToString()); throw new NotSupportedException(typeSig.ToString());
} }