views:

55

answers:

1

Hi,

var keyword in C# is pretty useful, since it is much shorter to write and does not change the compiled program. Hovering over var keyword in Visual Studio shows a tool tip with the "real" variable type behind, which is nice too.

But in most of the cases, having full qualified type instead of var makes code more readable. When there are ten vars in ten lines of code, each one having its own underlying type, it becomes more difficult to quickly understand the source code.

Is there an add-in or a tool which replaces all vars by explicitly defined variable types in selected text?

+2  A: 

Yes.

Resharper.

SLaks