Skip to main content

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

WARNING

This analyzer is obsolete. Use RCS1264 instead.

Properties​

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples​

Example #1​

diagnostic.cs
var foo = new Foo();
fix.cs
Foo foo = new Foo();

Applies to​