Code inspection: Non-accessed local variable is only used to discard the 'out' parameter value
Last modified: 04 June 2024tip
This inspection reports variables that are only being used to hold the out
parameter value and are not used anywhere else in the method.
Starting with C# 7.0, for out
parameters that you do not care about, you can replace the argument with the discard _
to make it clear that you are intentionally not using the out
parameter value.