/// <summary> /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method. /// </summary> public Condition(ConditionTest test) { this.test = test; }
/// <summary> /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method. /// </summary> public Condition(string name, int priority, ConditionTest test) : this(name, priority) { this.test = test; }
/// <summary> /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method. /// </summary> public Condition(string name, ConditionTest test) : this(name) { this.test = test; }
/// <summary> /// Same as <see cref="AddCustomEvent(Condition)"/>, but alows to define condition as anonymous method. /// </summary> public void AddCustomEvent(string name, int priority, ConditionTest test) { AddCustomEvent(new Condition(name, priority, test)); }
get => this.GetRequired(ConditionTest, Expression.Parse);