A method with an optional parameter can be called with only some of its parameters specified . Each optional parameter has a default value as part of its definition. If no argument is sent for that parameter, the default value is used.
Can we make out parameter optional in C#?
A method with an optional parameter can be called with only some of its parameters specified . Each optional parameter has a default value as part of its definition. If no argument is sent for that parameter, the default value is used.