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

贡献者指南