The "Change Signature" dialogue forces the use of default parameters
Hi,
After adding a new parameter to the "Change Signature" dialogue of a method, the dialogue can't be dismissed without specifying a default parameter for it.
However, existing parameters can be edited (type, name, modifier) without the need to specify default parameters.
Thanks,
Ohad
Please sign in to leave a comment.
It's not a 'default parameter', in the modern C# sense, it's a default value to be passed to that parameter in all the existing calls to that method.
It doesn't matter what you put in there - personally I just type XXX, which then creates an error on every call - those errors are then easy to find and fix in the appropriate way for each call.
It's a common source of confusion, but R#'s use of the word 'default' there predates the default parameter feature in the language.
I see, that makes sense.
Thanks !