StuntGeneratorAttribute Class

Definition

Namespace Stunts
Assembly Stunts.dll
Show inherited members (53)

Annotates a method that is a factory for stunts, so that a compile-time or design-time generator can generate them ahead of time.

[AttributeUsage(AttributeTargets.Method)]
public class StuntGeneratorAttribute : ValidationAttribute

Remarks

Deriving from ValidationAttribute lets NativeValidation treat a generic factory as a validated factory. Stunt.Of<T>() then registers T without a separate stunt validation generator.