Does C# have optional parameters?

However, you can greatly simplify the call to AutoFormat by using named and optional arguments , introduced in C# 4.0. Named and optional arguments enable you to omit the argument for an optional parameter if you don’t want to change the parameter’s default value.

Leave a Reply

Your email address will not be published. Required fields are marked *

Does C# have optional parameters?

However, you can greatly simplify the call to AutoFormat by using named and optional arguments , introduced in C# 4.0. Named and optional arguments enable you to omit the argument for an optional parameter if you don’t want to change the parameter’s default value.

Leave a Reply

Your email address will not be published. Required fields are marked *