fix: fix the bug that TypeSigUtil::ComputePropertyDefSignature didn't compute parameters to final signature.
parent
3d04c15d98
commit
2f7e2be97a
|
@ -51,9 +51,28 @@ namespace Obfuz.Utils
|
||||||
public static string ComputePropertyDefSignature(PropertyDef property)
|
public static string ComputePropertyDefSignature(PropertyDef property)
|
||||||
{
|
{
|
||||||
var result = new StringBuilder();
|
var result = new StringBuilder();
|
||||||
ComputeTypeSigName(property.PropertySig.RetType, result);
|
|
||||||
|
PropertySig propertySig = property.PropertySig;
|
||||||
|
ComputeTypeSigName(propertySig.RetType, result);
|
||||||
result.Append(" ");
|
result.Append(" ");
|
||||||
result.Append(property.Name);
|
result.Append(property.Name);
|
||||||
|
|
||||||
|
IList<TypeSig> parameters = propertySig.Params;
|
||||||
|
if (parameters.Count > 0)
|
||||||
|
{
|
||||||
|
result.Append("(");
|
||||||
|
|
||||||
|
for (int i = 0; i < parameters.Count; i++)
|
||||||
|
{
|
||||||
|
if (i > 0)
|
||||||
|
{
|
||||||
|
result.Append(", ");
|
||||||
|
}
|
||||||
|
ComputeTypeSigName(parameters[i], result);
|
||||||
|
}
|
||||||
|
result.Append(")");
|
||||||
|
}
|
||||||
|
|
||||||
return result.ToString();
|
return result.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue