Skip to content

Commit 4af00dc

Browse files
dennisdoomenDennis DoomenCopilot
authored
Update AV1520 guideline (#360)
Split from #298. Co-authored-by: Dennis Doomen <dennis.doomen@greenchoice.nl> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 792f093 commit 4af00dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_rules/1520.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ rule_category: maintainability
44
title: Only use `var` when the type is evident
55
severity: 1
66
---
7-
Use `var` for anonymous types (typically resulting from a LINQ query), or if the type is [evident](https://www.jetbrains.com/help/resharper/2021.3/Using_var_Keyword_in_Declarations.html#use-var-when-evident-details).
8-
Never use `var` for [built-in types](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/built-in-types).
7+
Use `var` for anonymous types (typically resulting from a LINQ query), or if the type is [evident](https://www.jetbrains.com/help/resharper/Using_var_Keyword_in_Declarations.html#use-var-when-evident-details).
8+
Never use `var` for [built-in types](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/built-in-types).
99

1010
// Projection into anonymous type.
1111
var largeOrders =

0 commit comments

Comments
 (0)