public override void fetchResults(IPricingEngineResults r) { base.fetchResults(r); Bond.Results results = r as Bond.Results; Utils.QL_REQUIRE(results != null, () => "wrong result type"); settlementValue_ = results.settlementValue; }
public override void fetchResults(IPricingEngineResults r) { base.fetchResults(r); Bond.Results results = r as Bond.Results; if (results == null) { throw new ApplicationException("wrong result type"); } settlementValue_ = results.settlementValue; }