JetBrains Rider 2024.1 Help

Code Inspection: 'value' parameter is not used

Category

Potential Code Quality Issues

ID

ValueParameterNotUsed

EditorConfig

resharper_value_parameter_not_used_highlighting

Default severity

Warning

Language

C#

Requires SWA

No

There are three cases where the value parameter is used:

  • Property assignments

  • Access by indexer

  • Event adders/removals

In all of these cases, JetBrains Rider 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: 17 April 2024