Home
Do you know when to use named parameters?
  v1.0 Posted at 27/04/2018 9:42 AM by Tiago Araujo
Named parameters have always been there for VB developers and in C# 4.0, C# developers finally get this feature.
​​​

​You should use named parameters under these scenarios:

  • When there are 4 or more parameters
  • When you make use of optional parameters
  • If it makes more sense to order the parameters a certain way​​

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments:

    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.