Does C# have default parameters?

Update: Named and optional (default) parameters are available starting from C# 4.0. For more information, see Named and Optional Arguments (C# Programming Guide).   In languages such as C++, a default value can be included as part of the method declaration: void Process(Employee employee, bool bonus = false) This method can be called either with:… Read more

Ask a FAQ Question

Do you have a FAQ about: The C# Language or compiler The C# IDE The Visual Studio debugger Reply to this post, and your question will be added to our list to be answered. Of course, depending on the nature of your comment, and the volume we receive, we may not get to every question…. Read more