Code Inspections for assignment of the same variable to 2 out parameters
Hi,
I have a question regarding Code Inspections in Resharper. I have simplified the code below.
Assume a function with the following signature:
void MyFunc(out string p1, out string p2);
And this code calling the function:
string myString;
MyFunc(out myString, out myString);
I know the mistake sounds obvious here because the code as been simplified.
Is there any Code Inspections in Resharper to display a warning that the same variable as been assigned to 2 out parameters?
Please sign in to leave a comment.
Hello John!
Thank you for contacting us.
I've filed corresponding feature request in our issue tracker - https://youtrack.jetbrains.com/issue/RSRP-466046.
Please feel free to comment or vote for it.
Thank you.