Maxim A. Babenko - 09 Aug 06 15:05 Re: #25578- 'Create local variable' adds unneccessary brace
Since the original snippet does not seem to work everywhere, here's another one:
class test
{
void foo()
{
object[] maps = null;
bar(new object[]
{
});
foreach (object map in |)
maps = maps;
}
void bar(object[] o)
{
}
}
Press Ctrl-Shift-Space and select 'maps'. Press Tab.
Since the original snippet does not seem to work everywhere, here's another one:
class test { void foo() { object[] maps = null; bar(new object[] { }); foreach (object map in |) maps = maps; } void bar(object[] o) { } }Press Ctrl-Shift-Space and select 'maps'. Press Tab.