public CompositePurchasePolicy(APurchasePolicy leftPolicy, APurchasePolicy rightPolicy, Operator boolOperator) : base() { this.Op = boolOperator; this.ChildrenPolicies = new List <APurchasePolicy>(); this.ChildrenPolicies.Add(leftPolicy); this.ChildrenPolicies.Add(rightPolicy); this.PolicyLeftID = PolicyLeft.policyID; this.PolicyRightID = PolicyRight.policyID; }
public bool Equals(APurchasePolicy other) { return(other != null && policyID.Equals(other.policyID)); }