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
There is a case of false positive on IDE0059 and IDE0060 rules.
It occurs when you use a variable or argument as an input and an output parameter in a function call and when the out parameter is placed first.
Example for IDE0059
string input = "default";
var res = this.Adjust(out input, input);
Example for IDE0060
public void DoSomething(string input = "")
{
var res = this.Adjust(out input, input);
...
}
Not a major issue for most people I guess, but our team considers a best practice to put all the output parameters on the left side of any call (same side as the returned parameter). And as we do defensive programming we often have a status returned as part of any operation, so we often have the multiple outputs.
The text was updated successfully, but these errors were encountered:
Describe the issue or suggestion
There is a case of false positive on IDE0059 and IDE0060 rules.
It occurs when you use a variable or argument as an input and an output parameter in a function call and when the out parameter is placed first.
Example for IDE0059
Example for IDE0060
Not a major issue for most people I guess, but our team considers a best practice to put all the output parameters on the left side of any call (same side as the returned parameter). And as we do defensive programming we often have a status returned as part of any operation, so we often have the multiple outputs.
The text was updated successfully, but these errors were encountered: