Hi, Evain!
In method "ReadStringAt", you use Encoding.Unicode.GetString to get
string from byte[].
This not it is correct, and is a reason many mistake.
With my bad english I can not well tell subj, but I think you
understand me.
The Example correct(but very not good, only PoC), code instead of
Encoding.Unicode.GetString for decision of the problem.
var str = "";
for (int i = offset; i < offset + length; i += 2)
{
str += (char)(Data[i] | ((uint)Data[i + 1]) << 8);
}
return str;
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---