コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }