C# Класс HandCoded.Validation.Precondition

A Precondition instance is used to determine the applicability of a Rule to a XmlDocument.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ALWAYS Precondition
NEVER Precondition

Открытые методы

Метод Описание
And ( Precondition lhs, Precondition rhs ) : Precondition

Creates a new Precondition that is the logical AND of the given arguments.

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

Evaluates this Precondition against the contents of the indicated NodeIndex.

Not ( Precondition pre ) : Precondition

Creates a new Precondition that is the logical NOT of the given arguments.

Or ( Precondition lhs, Precondition rhs ) : Precondition

Creates a new Precondition that is the logical OR of the given arguments.

Защищенные методы

Метод Описание
Precondition ( ) : System

Constructs a Precondition instance.

Описание методов

And() публичный статический Метод

Creates a new Precondition that is the logical AND of the given arguments.
public static And ( Precondition lhs, Precondition rhs ) : Precondition
lhs Precondition The left hand side Precondition.
rhs Precondition The right hand side Precondition.
Результат Precondition

Evaluate() публичный абстрактный Метод

Evaluates this Precondition against the contents of the indicated NodeIndex.
public abstract Evaluate ( NodeIndex nodeIndex, bool>.Dictionary cache ) : bool
nodeIndex HandCoded.Xml.NodeIndex The of a .
cache bool>.Dictionary A cache of previously evaluated precondition results.
Результат bool

Not() публичный статический Метод

Creates a new Precondition that is the logical NOT of the given arguments.
public static Not ( Precondition pre ) : Precondition
pre Precondition The Precondition to be inverted.
Результат Precondition

Or() публичный статический Метод

Creates a new Precondition that is the logical OR of the given arguments.
public static Or ( Precondition lhs, Precondition rhs ) : Precondition
lhs Precondition The left hand side Precondition.
rhs Precondition The right hand side Precondition.
Результат Precondition

Precondition() защищенный Метод

Constructs a Precondition instance.
protected Precondition ( ) : System
Результат System

Описание свойств

ALWAYS публичное статическое свойство

A Precondition instance that is always true.
public static Precondition,HandCoded.Validation ALWAYS
Результат Precondition

NEVER публичное статическое свойство

A Precondition instance that is always false.
public static Precondition,HandCoded.Validation NEVER
Результат Precondition