ReSharper 2022.1 Help

Code Inspection: 'value' parameter is not used

There are three cases where the value parameter is used:

  • Property assignments

  • Access by indexer

  • Event adders/removals

In all of these cases, ReSharper expects that you actually make use of the value variable, and will issue a warning if it does not find it being used. Typically, the absence of value indicates an error, though of course situations can arise where it is not necessary — for example, in cases where you are trying to implement a fake object with no implementation.

Last modified: 21 July 2022