Browse Popular

Prefer `var` when type is apparent from context.

csharp
Style Guide
.NET Conventions
#f666352c2956d82fFirst seen Mar 1, 2026

0

Up

1

Down

-1

Net

Voting History

Loading...

AI Assessment

Enforce `var` usage via `.editorconfig` (`csharp_style_var_when_type_is_apparent = true`) rather than relying on an agent rule.

Move to Config2/10

Better enforced by tooling, not AI rules

Issues detected

  • Vague rule

Similar Rules