Refactor to extract a local variable from a function call in VS 2012

ساخت وبلاگ

Vote count: 0

I know that is possible to extract a method from a piece of code (Refactor->Extract method), but I miss the same tool to extract a local variable as other IDEs do.

For example:

if (someFunctionCall()) {...}

I want to extract this call to a local variable, because I use the returned value in multiple parts within the same scope.

bool localvar = someFunctionCall();
if (localvar) {...}
asked 24 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 260 تاريخ : جمعه 22 ارديبهشت 1396 ساعت: 16:55