Photon Server API
PureAttribute Class Reference

Indicates that a method does not make any observable state changes. The same as System.Diagnostics.Contracts.PureAttribute More...

Inheritance diagram for PureAttribute:

Detailed Description

Indicates that a method does not make any observable state changes. The same as System.Diagnostics.Contracts.PureAttribute

[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
}