|
Project
|
ReSharper
|
|
Priority
|
Normal |
|
Type
|
Bug |
|
Fix versions
|
5.1 |
|
State
|
Won't fix |
|
Assignee
|
Sergey Shkredov |
|
Subsystem
|
No subsystem |
|
Affected versions
|
No Affected versions |
|
Fixed in build
|
No Fixed in build
|
public class Foo
{
public void foo()
{
if (1 == 1)
{
DoThis();
DoThat();
}
}
private void DoThis()
{
throw new NotImplementedException();
}
private void DoThat()
{
throw new NotImplementedException();
}
}
Oddly enough, for me selecting the block is quite reasonable way to extract it into a method.
It shouldn't since the "block" is integral part of the if statement and not a statement or sequence of statements itself. You should either select the whole if statement or only its block without braces.