MustUseReturnValueAttribute Class
Indicates that the return value of the method invocation must be used.
Namespace:
RingSoft.DataEntryControls.WPFAssembly: RingSoft.DataEntryControls.WPF (in RingSoft.DataEntryControls.WPF.dll)
Syntax
[AttributeUsageAttribute] public sealed class MustUseReturnValueAttribute : Attribute
<AttributeUsageAttribute> _ Public NotInheritable Class MustUseReturnValueAttribute _ Inherits Attribute
[AttributeUsageAttribute] public ref class MustUseReturnValueAttribute sealed : public Attribute
Remarks
Similarly to PureAttribute, this attribute will help detecting usages of the method when the return value in not used. Additionally, you can optionally specify a custom message, which will be used when showing warnings, e.g.
C#
[MustUseReturnValue("Use the return value to...")]