[MonoDevelop] Generics in C# projects
matej.urbas at gmail.com
Sun Jul 30 16:15:44 EDT 2006
With my latest set of patches I have added support for parsing generics
information from .cs files. Hence, generics as such are parsed and
stored into the code completion database only from C# projects.
Feel free to try it out. However, you will have to force MonoDevelop to
re-parse your files (by making a change to the file that contains
generics and save it).
There is one catch with this patch: the parser in MonoDevelop still
doesn't recognise the type of expressions such as 'SomeClass<T>.' <--
MonoDevelop will not be capable of telling that we are actually
accessing SomeType with one generic attribute - namely 'T'.
That's just how it is. But note that if you have a non-generic type and
access a generic method, it will recognise its return type correctly.
Well, it still isn't perfect, but its a start. Sooner or later we'll
have full generics support.
More information about the Monodevelop-list