You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
both assignments are mutating the input parameter and treating it like a return value. The rule would not be applied for ref and out type params, as they imply explicitly that the parameter is / might be mutated.
The text was updated successfully, but these errors were encountered:
mikechamberlain
changed the title
Check if method parameters are being mutated by reference
AG0034: Check if method parameters are being mutated by reference
Sep 27, 2018
I would like to prevent people from misusing the parameters as a way to return some value from a method.
For example, for following code:
both assignments are mutating the input parameter and treating it like a return value. The rule would not be applied for
ref
andout
type params, as they imply explicitly that the parameter is / might be mutated.The text was updated successfully, but these errors were encountered: