Usage of named parameters

后端 未结 5 1271
情歌与酒
情歌与酒 2021-01-06 11:04

Sorry, if duplicate.

I\'m reading CLR via C#. Chapter \"Parameters\" starts with the explanation of optional and named parameters.

So, can you give some exam

5条回答
  •  自闭症患者
    2021-01-06 11:39

    I had a need of them a few days ago ... I had to give a full object parameter by parameter to a function and those were like 20 paramters, so i used named parameters for better understanding.

提交回复
热议问题