Is there a shortcut for explicit named parameters when I call a method in C # for VisualStudio 2017?

In C #, I have a method with many parameters. I want to call this method with all named parameters. Is there a shortcut for this in VisualStudio 2017? I use EF6 and methods created from stored procedures with more than 10 input parameters, since SQL 2014.

Method:

public void Test(int a, int b, int c){}

I would like to auto generate the next call to easily add values

Test(a: , b: , c: );

Is it possible? Or any ideas for a better approach? Thank!

+4
source share
1 answer

​​ Visual Commander. Roslyn, . , .

. . a: 0, b: 0, c: 0.

+1

Source: https://habr.com/ru/post/1687875/


All Articles