nspectre - declarative validation for .NET

ICompiledSettings.AddSpecification Method 

Adds a type and the associated specification.

void AddSpecification(
   Type type,
   string action,
   ISpecification specification
);

Parameters

type
The Type.
action
The name of the action.
specification
The specification.

Remarks

The specification should be a non-shortcircuited composite specification containing all the specifications for the type.

See Also

ICompiledSettings Interface | NSpectre.Core.Configuration Namespace