dotnet/roslyn

Signature help for delegate types

Open

#46,190 opened on Jul 21, 2020

View on GitHub
 (42 comments) (5 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEIDE-IntelliSensehelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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

Contributor guide