dotnet/runtime

Prefer ValueTuple over Tuple

オープン

#33,791 opened on 2020/03/19

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (5,445 件のフォーク)batch import
api-approvedarea-System.Runtimecode-analyzercode-fixerhelp wantedpartner-impact

Repository metrics

Stars
 (17,886 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

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