public VanillaRateCalculation(XmlNode xmlNode) : base(xmlNode) { XmlNode rateCouponCalculationNode = xmlNode.SelectSingleNode("rateCouponCalculation"); if (rateCouponCalculationNode != null) { if (rateCouponCalculationNode.Attributes["href"] != null || rateCouponCalculationNode.Attributes["id"] != null) { if (rateCouponCalculationNode.Attributes["id"] != null) { rateCouponCalculationIDRef_ = rateCouponCalculationNode.Attributes["id"].Value; RateCouponCalculation ob = new RateCouponCalculation(rateCouponCalculationNode); IDManager.SetID(rateCouponCalculationIDRef_, ob); } else if (rateCouponCalculationNode.Attributes["href"] != null) { rateCouponCalculationIDRef_ = rateCouponCalculationNode.Attributes["href"].Value; } else { rateCouponCalculation_ = new RateCouponCalculation(rateCouponCalculationNode); } } else { rateCouponCalculation_ = new RateCouponCalculation(rateCouponCalculationNode); } } }
public VanillaRateCalculation(XmlNode xmlNode) : base(xmlNode) { XmlNode rateCouponCalculationNode = xmlNode.SelectSingleNode("rateCouponCalculation"); if (rateCouponCalculationNode != null) { if (rateCouponCalculationNode.Attributes["href"] != null || rateCouponCalculationNode.Attributes["id"] != null) { if (rateCouponCalculationNode.Attributes["id"] != null) { rateCouponCalculationIDRef_ = rateCouponCalculationNode.Attributes["id"].Value; RateCouponCalculation ob = new RateCouponCalculation(rateCouponCalculationNode); IDManager.SetID(rateCouponCalculationIDRef_, ob); } else if (rateCouponCalculationNode.Attributes["href"] != null) { rateCouponCalculationIDRef_ = rateCouponCalculationNode.Attributes["href"].Value; } else { rateCouponCalculation_ = new RateCouponCalculation(rateCouponCalculationNode); } } else { rateCouponCalculation_ = new RateCouponCalculation(rateCouponCalculationNode); } } }