コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: APurchasePolicy.cs プロジェクト: benshyuv/Workshop
 public bool Equals(APurchasePolicy other)
 {
     return(other != null &&
            policyID.Equals(other.policyID));
 }