Roslyn: Name completion help for Func<..., T>

Created on 24 Mar 2020  路  3Comments  路  Source: dotnet/roslyn

Version Used: 16.6-p1

Task<T> and IEnumerable<T> are specially-recognized by name completion. The same thing would be nice for Func<..., T>. Factory is the suffix I tend to use, but that might not be general enough. Name completion with no suffix would be better than nothing.

Area-IDE Concept-Continuous Improvement IDE-IntelliSense Need Design Review

Most helpful comment

I'm in the middle of working on the ability to provide CompletionProvider through NuGet packages. This is an interesting scenario where it would be possible to define a naming suggestion completion provider that follows project-specific coding conventions.

All 3 comments

I often call Func<T> tFunc or getT

I'm in the middle of working on the ability to provide CompletionProvider through NuGet packages. This is an interesting scenario where it would be possible to define a naming suggestion completion provider that follows project-specific coding conventions.

Another common suffix I use for funcs is Selector.

Was this page helpful?
0 / 5 - 0 ratings