Class MementoStrategyAttribute
- Namespace
- PatternKit.Generators
- Assembly
- PatternKit.Generators.Abstractions.dll
Specifies the capture strategy for a member in the memento. Determines how the member value is copied when creating a snapshot.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class MementoStrategyAttribute : Attribute
- Inheritance
-
MementoStrategyAttribute
- Inherited Members
Constructors
MementoStrategyAttribute(MementoCaptureStrategy)
public MementoStrategyAttribute(MementoCaptureStrategy strategy)
Parameters
strategyMementoCaptureStrategy
Properties
Strategy
public MementoCaptureStrategy Strategy { get; }