Hello,
I submit an update in the Mono.Cecil library in order to manage
complex arrays with a rank other than 1 :
in ReflectionHelper.cs :
public static string GetTypeSignature (Type t)
{
...
else if (t.IsArray) // deal with complex arrays
{
// Old code
// return string.Concat
(GetTypeSignature (t.GetElementType ()),
"[]");
// RVaquette - new code
string sign = "[";
for (int i = 1; i < t.GetArrayRank();
i++) sign += ",";
sign += "]";
return string.Concat (GetTypeSignature
(t.GetElementType ()),
sign);
}
...
}
I have found a bug in MethodReference.cs in the ToString() method that
causes a method signature to differ from the one returned by the .NET
Framework:
line 127:
// Old code
// sb.Append (",");
// New code
// sb.Append (", ");
That's all!
Happy and long life to Cecil!
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---