PureAttribute

Description

sealed class CodeX.PureAttribute

Derived from

Attribute abstract

The annotated method does not have any side effects.

A pure method does not modify the internal state of the object it is called on. In fact, it does not modify any state, which makes it inherently thread-safe.

Method invocation expressions on pure methods can be evaluated in any order and will still yield the same results.