Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
In the MonoMac addin the type mapping is done with a string (FullName).
The FullName doesn't really represent a type.
Some issues with that:
+ Type parameters
+ Inner types
The type system uses a TypeReferences system for looking up types - the monomac addin should use that as well - it solves all the issues of looking up types.
The old DOM just tried to ignore the type parameters and gave back the first thing that could possible match. That his is a no-go should be clear.
The LookupType method tries to mimic the old (wrong) behaviour but should never be used. For having a better string representation ReflectionNames could be used - but IMO just using TypeReferences are a better solution.
*** Bug 4532 has been marked as a duplicate of this bug. ***
*** Bug 4467 has been marked as a duplicate of this bug. ***
I don't think it's something that has to do with #4467.
Should work in more abstract cases now / fixed.
(I took the approach with reflection names.)