public Reduce(string Name, bool IsAxiom, IReduceInput <T> Input, IEnumerable <IRuleAttribute> Attributes) { if (Name == null) { throw new ArgumentNullException("Name"); } if (Input == null) { throw new ArgumentNullException("Input"); } this.Name = Name; this.IsAxiom = IsAxiom; this.Input = Input; this.Attributes = Attributes; }
public Situation(IRule <T> Rule, ISituationPredicate <T> Predicate, IReduceInput <T> Input) { if (Rule == null) { throw (new ArgumentNullException("Rule")); } if (Predicate == null) { throw (new ArgumentNullException("Predicate")); } if (Input == null) { throw (new ArgumentNullException("Input")); } this.Rule = Rule; this.Predicate = Predicate; this.Input = Input; }