C# Класс ExoRule.Condition

Represents an condition established based on a specific ConditionType instance.
Показать файл Открыть проект

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

Метод Описание
AddTarget ( object target ) : void

Adds an additional target to the condition.

Condition ( ConditionType type, object target ) : System

Creates a new Condition based on the specified ConditionType.

Condition ( ConditionType type, string message, object target ) : System

Creates a new Condition based on the specified ConditionType and error message.

GetConditions ( ModelInstance instance ) : IEnumerable

Gets the set of Condition instances associated with the specified ModelInstance.

GetConditions ( ModelInstance instance, bool>.Func filter ) : IEnumerable

Gets the set of Condition instances associated with the specified ModelInstance.

GetConditions ( object instance ) : IEnumerable

Gets the set of Condition instances associated with the specified ModelInstance.

Приватные методы

Метод Описание
AddTarget ( ModelInstance target, IEnumerable steps ) : void

Recursively attaches the current condition to targets in the model.

Destroy ( ) : void

Destroys the current exception.

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

AddTarget() публичный Метод

Adds an additional target to the condition.
public AddTarget ( object target ) : void
target object
Результат void

Condition() публичный Метод

Creates a new Condition based on the specified ConditionType.
public Condition ( ConditionType type, object target ) : System
type ConditionType
target object
Результат System

Condition() публичный Метод

Creates a new Condition based on the specified ConditionType and error message.
public Condition ( ConditionType type, string message, object target ) : System
type ConditionType
message string
target object
Результат System

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

Gets the set of Condition instances associated with the specified ModelInstance.
public static GetConditions ( ModelInstance instance ) : IEnumerable
instance ModelInstance
Результат IEnumerable

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

Gets the set of Condition instances associated with the specified ModelInstance.
public static GetConditions ( ModelInstance instance, bool>.Func filter ) : IEnumerable
instance ModelInstance
filter bool>.Func
Результат IEnumerable

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

Gets the set of Condition instances associated with the specified ModelInstance.
public static GetConditions ( object instance ) : IEnumerable
instance object
Результат IEnumerable