MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Memoization
Open sandboxFocus

Metalama.Patterns.Memoization Namespace



Custom attribute that, when added to a get-only property or non-void parameterless method, causes the result of this property or method to be indefinitely stored. All calls to the target property or method are guaranteed to return the same value or object reference. The underlying implementation of the property or method is not guaranteed to be executed only once. The cached result is stored in the type itself.