JetBrains Rider 2024.3 Help

Code inspection: Return value of [MustUseReturnValue] annotated method is not used

This inspection reports calls to methods marked with the [MustUseReturnValue] attribute, where the return value of the method is never used.

The [MustUseReturnValue], defined in the JetBrains.Annotations, can be used to annotate methods in your codebase, but there are also system methods annotated with this attribute via external annotations — for example, MemoryStream.Read.

Last modified: 05 June 2024