Multiple choice technology platforms and products

The new enhancement in C# 4.0 allows you to pass parameters into a function in any order

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

C# 4.0 introduced named parameters, which allow specifying parameters by name along with their values. However, this doesn't mean parameters can be passed in arbitrary order - they must still follow the defined parameter order unless named parameters are explicitly used with the syntax methodName(parameterName: value).