Currently the code fix for MissingDefaultValue does not ensure that semantics are preserved when copying the explicit default value expression from the source definition to the target method. This does not affect literals (such as x = null, t = default(int?), or y = "Stuff", but it would affect cases where the default value is an unqualified reference to a constant value defined in the current class.
Currently the code fix for
MissingDefaultValuedoes not ensure that semantics are preserved when copying the explicit default value expression from the source definition to the target method. This does not affect literals (such asx = null,t = default(int?), ory = "Stuff", but it would affect cases where the default value is an unqualified reference to a constant value defined in the current class.