Hi

I have the following class in my assembly:

public static class ExtendedTypeCode
{
        public const TypeCode Version = (TypeCode)(-1);
}

After round-robin processing with Cecil it gets modified as shown
below (I'm looking with Reflector):

public static class ExtendedTypeCode
{
        public const TypeCode Version = (TypeCode)(0);
}

I was able to fix that bug after some investigations. Please take a
look at MonoCecilConstBug.zip file (it is uploaded to google group).
There is a Visual Studio 2008 solution which shows the bug. Just give
it a run.

There is a patch which fixes that bug at MonoConstTest/Lib/
CecilConstWriteFix.patch file.

Thanks for the great project!

Best regards
Oleksiy

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to