Skip to main content

RCS1176: Use 'var' instead of explicit type (when the type is not obvious)

WARNING

This analyzer is obsolete. Use RCS1264 instead.

Properties​

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples​

Example #1​

diagnostic.cs
string s = GetValue();
fix.cs
var s = GetValue();

Applies to​