dotnet/roslyn

Signature help for delegate types

オープン

#46,190 opened on 2020/07/21

 (42 件のコメント) (5 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEIDE-IntelliSensehelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

If you're looking at this, ready to type a lambda, how do you know what to type next?

image

If it's Func<...> or Action<...> it's easy. For two or three others, I have the signature memorized and can translate the generic types in my head to the appropriate locations (e.g. Predicate<X>). For 99% of delegate types, it's a bunch of F12ing or F1ing every time.

Could signature help show something like this?

ParseArgument<SemanticVersion> is (ArgumentResult result) => SemanticVersion

@CyrusNajmabadi mentioned that something similar is already shown for anonymous types: image

🔗 Also reported at AB#1244148

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