Partial method support goes against point of partial methods ?

I'm playing with partial methods and it seems that ReSharper is really working against the user in all respects when it comes to partial methods.

Creating a partial method that is not implemented grays out the "partial" keyword with the warning "partial method with single part".

Creating a partial method that is implemented grays out the partial declaration (the one without the body) and says "Private method 'xxx' is never used." which is very misleading.

Partial methods are there primarily for generated code and very often times there may not be another partial class at all, and if there is not all partial methods will be implemented. Creating warnings like this on them seems very much against the purpose of partial methods.

Using R# 917.

Thanks,

Sam

1 comment

Thank you for the feedback.
The problems with partial methods will be fixed in ReSharper 4.5

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Samuel Neff" <no_reply@jetbrains.com> wrote in message
news:29698998.93991220371444566.JavaMail.jive@app4.labs.intellij.net...

I'm playing with partial methods and it seems that ReSharper is really
working against the user in all respects when it comes to partial methods.

>

Creating a partial method that is not implemented grays out the "partial"
keyword with the warning "partial method with single part".

>

Creating a partial method that is implemented grays out the partial
declaration (the one without the body) and says "Private method 'xxx' is
never used." which is very misleading.

>

Partial methods are there primarily for generated code and very often
times there may not be another partial class at all, and if there is not
all partial methods will be implemented. Creating warnings like this on
them seems very much against the purpose of partial methods.

>

Using R# 917.

>

Thanks,

>

Sam



0

Please sign in to leave a comment.