nspectre - declarative validation for .NET

CompiledSettings.AddSpecification Method 

Adds a type and the associated specification.

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

Parameters

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

Implements

ICompiledSettings.AddSpecification

Remarks

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

See Also

CompiledSettings Class | NSpectre.Core.Configuration Namespace