How do you specify a named argument?

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 2MQ2
icon
Related questions
Question

How do you specify a named argument?

Expert Solution
Step 1

Named argument:

  • C# specifies the parameter to which an argument must be passed to.
  • For specifying the parameter variable to which the argument must be passed to, the format to write the method call is as follows:

                       paramterName:value

    • Here, “paramterName” is the name of the parameter and the “value” is the value that is passed into the parameter.
  • If an argument is as defined in the above given format, then it is called as named argument.
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning