I have some more information on this behavior. I dug around through
the source code. In ReflectionWriter.GetCorrespondingType, the
fullName parameter gets compared to a list of constants. If the
parameter is passed by reference, it will have an ampersand at the end
of its fullName, so it will not match any of the constants.
I added this line to the top of the GetCorrespondingType function, and
it seems to fix the problem.
fullName = fullName.TrimEnd('&');
Please let me know if you agree that this is a bug, and if this is an
OK way to fix it.
Thanks!
Dave
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---