C# Class HandCoded.Validation.DelegatedPrecondition

The DelegatedPrecondition class provides an implementation of the abstract Precondition class that allows the use of delegates.
Inheritance: Precondition
Exibir arquivo Open project: formicary/fpml-toolkit-csharp

Public Methods

Method Description
DelegatedPrecondition ( PreconditionDelegate function ) : System

Constructs a DelegatedPrecondition that will use the given delegate for evaluation.

Evaluate ( NodeIndex nodeIndex, Boolean>.Dictionary cache ) : bool

Evaluates this Precondition against the contents of the indicated NodeIndex.

Method Details

DelegatedPrecondition() public method

Constructs a DelegatedPrecondition that will use the given delegate for evaluation.
public DelegatedPrecondition ( PreconditionDelegate function ) : System
function PreconditionDelegate The delegate evaluation function.
return System

Evaluate() public method

Evaluates this Precondition against the contents of the indicated NodeIndex.
public Evaluate ( NodeIndex nodeIndex, Boolean>.Dictionary cache ) : bool
nodeIndex HandCoded.Xml.NodeIndex The of a .
cache Boolean>.Dictionary A cache of previously evaluated precondition results.
return bool