ReSharper 2016.2 Help

Code Inspection: Use preferred 'var' style (for built-in types)

Using implicitly typed local variables (also known as var keyword) introduced in C# 3.0 has become quite popular due to improved readability of the resulting code. By default, ReSharper also encourages using of var keyword, but the preferences of its usage are flexibly configurable. For example, you can opt for using explicit types in specific cases or everywhere.

For more information about configuring and enforcing your preferences of using var, see Implicit/Explicit Typing.

See Also

Last modified: 15 December 2016