List Info

Thread: Generics in C# projects




Generics in C# projects
user name
2006-07-30 20:15:44
Hi

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.


Enjoy,
---
Matej

_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )