diff --git a/concepts/named-arguments/.meta/config.json b/concepts/named-arguments/.meta/config.json index 52ac76e601..a560437f39 100644 --- a/concepts/named-arguments/.meta/config.json +++ b/concepts/named-arguments/.meta/config.json @@ -4,6 +4,7 @@ "ErikSchierboom" ], "contributors": [ - "yzAlvin" + "yzAlvin", + "yrahcaz7" ] } diff --git a/concepts/named-arguments/about.md b/concepts/named-arguments/about.md index daf9728193..2b21acbff5 100644 --- a/concepts/named-arguments/about.md +++ b/concepts/named-arguments/about.md @@ -12,8 +12,8 @@ class Card } Card.NewYear(); // => "Happy 2020 from me!" -Card.Card(1999); // => "Happy 1999 from me!" -Card.Card(sender: "mom"); // => "Happy 2020 from mom!" +Card.NewYear(1999); // => "Happy 1999 from me!" +Card.NewYear(sender: "mom"); // => "Happy 2020 from mom!" ``` -[named-arguments]: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/named-and-optional-arguments#named-arguments +[named-arguments]: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/named-and-optional-arguments#named-arguments diff --git a/concepts/named-arguments/introduction.md b/concepts/named-arguments/introduction.md index bf8a458058..aa878fa153 100644 --- a/concepts/named-arguments/introduction.md +++ b/concepts/named-arguments/introduction.md @@ -1,6 +1,8 @@ # Introduction -So far we have seen that the arguments passed into a method are matched to the method's declared parameters based on position. An alternative approach, particularly where a routine takes a large number of arguments, the caller can match arguments by specifying the declared parameter's identifier. +So far we have seen that the arguments passed into a method are matched to the method's declared parameters based on position. +An alternative approach is for the caller to match arguments by specifying the declared parameter's identifier. +This is particularly useful where a routine takes a large number of arguments. The following illustrates the syntax: diff --git a/exercises/concept/wizards-and-warriors-2/.docs/introduction.md b/exercises/concept/wizards-and-warriors-2/.docs/introduction.md index 823d4a79e9..cf18103d67 100644 --- a/exercises/concept/wizards-and-warriors-2/.docs/introduction.md +++ b/exercises/concept/wizards-and-warriors-2/.docs/introduction.md @@ -13,7 +13,9 @@ The compiler will automatically infer which overloaded method to call based on t ## Named Arguments -So far we have seen that the arguments passed into a method are matched to the method's declared parameters based on position. An alternative approach, particularly where a routine takes a large number of arguments, the caller can match arguments by specifying the declared parameter's identifier. +So far we have seen that the arguments passed into a method are matched to the method's declared parameters based on position. +An alternative approach is for the caller to match arguments by specifying the declared parameter's identifier. +This is particularly useful where a routine takes a large number of arguments. The following illustrates the syntax: