Beef Corlib
Public Member Functions | List of all members
System.NoDiscardAttribute Struct Reference

If [NoDiscard] is used on a method, the the compiler will show a warning if the result is discarded. More...

Inheritance diagram for System.NoDiscardAttribute:
System.Attribute

Public Member Functions

 NoDiscardAttribute (String message)
 

Detailed Description

If [NoDiscard] is used on a method, the the compiler will show a warning if the result is discarded.

If used on a type, the compiler will show an warning if any method returns that type and the caller discards the result.