dotnet/runtime

Prefer ValueTuple over Tuple

Open

#33,791 opened on 2020年3月19日

GitHub で見る
 (7 comments) (0 reactions) (0 assignees)C# (5,445 forks)batch import
api-approvedarea-System.Runtimecode-analyzercode-fixerhelp wantedpartner-impact

Repository metrics

Stars
 (17,886 stars)
PR merge metrics
 (平均マージ 12d 11h) (30d で 661 merged PRs)

説明

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

コントリビューターガイド