Skip to main content

RCS1010: Use 'var' instead of explicit type (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
Foo foo = new Foo();
fix.cs
var foo = new Foo();

Applies to​