dotnet/runtime

Prefer ValueTuple over Tuple

開放

#33,791 建立於 2020年3月19日

 (7 則留言) (0 個反應) (0 位負責人)C# (5,445 個分叉)batch import
api-approvedarea-System.Runtimecode-analyzercode-fixerhelp wantedpartner-impact

倉庫指標

星標
 (17,886 顆星)
PR 合併指標
 (平均合併 12天 11小時) (30 天內合併 661 個 PR)

描述

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

貢獻者指南