ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspection: 'value' parameter is not used

Last modified: 11 February 2024

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.