C# 클래스 HandCoded.Validation.DelegatedPrecondition

The DelegatedPrecondition class provides an implementation of the abstract Precondition class that allows the use of delegates.
상속: Precondition
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

공개 메소드들

메소드 설명
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.

메소드 상세

DelegatedPrecondition() 공개 메소드

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

Evaluate() 공개 메소드

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.
리턴 bool