Resharper return type void suggestion wrong/silly order

When i'm writing code I tend to iterate really fast so I'll do something like

public void Foo() {}

Then as i'm working use local variables, promote them to parameters when i'm sure i need them as parameters. When i'm sure what i'm even going to return from the method, i do return WhatIWant.

The quickfix lightbulb promotes the silly suggestion of "hey let me delete that code you explicitly wrote".

"Change type of method" should definitely be the first option when return type is void.

1 comment

Please sign in to leave a comment.