Problems with generics not fixed yet?

Hello,

I've been experiencing problems with code error highlighting when using
generics from the first 2.0 EAP build you guys released. Today, using
build 208, I'm still having these problems. I've tried clearing caches
but no luck there. Is this a problem with my setup (still using VS2005
beta 2), or is it just very hard to fix these things?

For example, one of the things that makes Resharper unhappy is adding an
event handler using the EventHandler generic class, as such: _model.ReleaseAdded -= new EventHandler>(v.OnReleaseAdded); The word EventHandler is underlined in red and yields a tooltip stating "delegate 'void System.EventHandler(object, EventArgs)' does not have type parameters". Furthermore, the target method name (in this case OnReleaseAdded) is also underlined in red, stating "Expected a method with 'void OnReleaseAdded(object, EventArgs)' signature". I'm guessing Resharper has difficulties when there's both a generic and non-generic version of a class available? Eg. EventHandler vs EventHandler<>]]>.

It would be nice to see those things fixed. Still an outstanding product
nonetheless!

Kind regards,
Filip Duyck.

1 comment
Comment actions Permalink

This is a known problem (ReSharper doesn't understand the overloading by the
number of type parameters), and it will be fixed in approx 1 month

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Filip Duyck" <jetbrains@NOfilip.SPAMduyck.TNXorg> wrote in message
news:djm1hc$13v$1@is.intellij.net...

Hello,

>

I've been experiencing problems with code error highlighting when using
generics from the first 2.0 EAP build you guys released. Today, using
build 208, I'm still having these problems. I've tried clearing caches but
no luck there. Is this a problem with my setup (still using VS2005 beta
2), or is it just very hard to fix these things?

>

For example, one of the things that makes Resharper unhappy is adding an
event handler using the EventHandler<> generic class, as such:

>

_model.ReleaseAdded -= new
EventHandler<InsertedItemEventArgs<Release>>(v.OnReleaseAdded);

>

The word EventHandler is underlined in red and yields a tooltip stating
"delegate 'void System.EventHandler(object, EventArgs)' does not have type
parameters". Furthermore, the target method name (in this case
OnReleaseAdded) is also underlined in red, stating "Expected a method with
'void OnReleaseAdded(object, EventArgs)' signature".

>

I'm guessing Resharper has difficulties when there's both a generic and
non-generic version of a class available? Eg. EventHandler vs
EventHandler<>.

>

It would be nice to see those things fixed. Still an outstanding product
nonetheless!

>

Kind regards,
Filip Duyck.



0

Please sign in to leave a comment.