Table of Contents

Class MemoizeMethodAttribute

Namespace
Velvet
Assembly
Velvet.Docs.dll

Marks a method as a per-method auto-memoization target recognized by the Source Generator. The annotated partial method is expanded into a V.Memoized(...) wrapper.

[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public sealed class MemoizeMethodAttribute : Attribute
Inheritance
object
Attribute
MemoizeMethodAttribute

Remarks

Unrelated to Memoize: this attribute drives per-method wrapping by the Source Generator, while Memoize is a per-component props-bail flag at the reconcile boundary. The shared Memoize root is all the two have in common.