Thanx you for your answer. I have another question about working in
"Unicode" string in Cecil. When I use Reflector to view my assembly I
see this Unicode string

*****
ldstr "\ub897\udb99\uef9b\ued9d\ucf9f
\uc1a1\ucda3\uc7a5\udca7\uc3a9\uc3ab\uc0ad"
*****

But when I try with Cecil to see the operand of this above command

*****
 
tMember.Constructors[nIndexConstructor].Body.Instructions[nIndex].Operand.ToString().ToCharArray();
*****

The char-Array I receive is not right anymore. The array is

*****
"\ub897\ufffd\uef9b\ued9d\ucf9f\uc1a1\ucda3\uc7a5\udca7\uc3a9\uc3ab
\uc0ad"
*****

the second character was false. It's changed from "\udb99" to
"\ufffd". I would like to ask how can I receive my char-array
correctly again.
Thank you.
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to