RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

MustUseReturnValueAttribute Class

Indicates that the return value of the method invocation must be used.

Namespace:  RingSoft.DbMaintenance
Assembly:  RingSoft.DbMaintenance (in RingSoft.DbMaintenance.dll)

Syntax


[AttributeUsageAttribute]
public sealed class MustUseReturnValueAttribute : Attribute
<AttributeUsageAttribute> _
Public NotInheritable Class MustUseReturnValueAttribute _
	Inherits Attribute
[AttributeUsageAttribute]
public ref class MustUseReturnValueAttribute sealed : public Attribute

Remarks


Methods decorated with this attribute (in contrast to pure methods) might change state, but make no sense without using their return value.
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...")]
.

Inheritance Hierarchy


Object
  Attribute
    RingSoft.DbMaintenance..::..MustUseReturnValueAttribute