Pure |
The PureAttribute type exposes the following members.
Name | Description | |
---|---|---|
![]() | PureAttribute | Initializes a new instance of the PureAttribute class |
[Pure] private int Multiply(int x, int y) { return x * y; } public void Foo() { const int a = 2, b = 2; Multiply(a, b); // Waring: Return value of pure method is not used }