Code inspection: Return value of [MustUseReturnValue] annotated method is not usedLast modified: 05 June 2024Category: Potential Code Quality IssuesID: MustUseReturnValueEditorConfig: resharper_must_use_return_value_highlighting=[error|warning|suggestion|hint|none]Default severity: WarningLanguage: C#Requires SWA: NotipYou can suppress this inspection to ignore specific issues, change its severity level to make the issues less or more noticeable, or disable it altogether.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.