dotnet/runtime

Prefer ValueTuple over Tuple

Ouverte

#33 791 ouverte le 19 mars 2020

 (7 commentaires) (0 réaction) (0 personne assignée)C# (5 445 forks)batch import
api-approvedarea-System.Runtimecode-analyzercode-fixerhelp wantedpartner-impact

Métriques du dépôt

Stars
 (17 886 étoiles)
Métriques de merge PR
 (Merge moyen 12j 11h) (661 PRs mergées en 30 j)

Description

The rule should find and flag cases where a Tuple<...> is being used but where a ValueTuple<...> would suffice, ideally with the C# language syntax employed. There are some cases where a Tuple<...> is beneficial, however, so the patterns identified here would be constrained.

Category: Performance Severity: Info

Guide contributeur