示例#1
0
        ///// <summary>
        ///// The CommodityCurveIdentifier.
        ///// </summary>
        ///// <param name="pricingStructureType"></param>
        ///// <param name="curveName"></param>
        ///// <param name="buildDateTime"></param>
        //public CommodityCurveIdentifier(PricingStructureTypeEnum pricingStructureType, string curveName, DateTime buildDateTime)
        //    : base(pricingStructureType, curveName, buildDateTime)
        //{
        //    CommodityAsset = CurveName.Split('-')[1];
        //}

        ///// <summary>
        ///// The CommodityCurveIdentifier.
        ///// </summary>
        ///// <param name="curveId"></param>
        //public CommodityCurveIdentifier(string curveId)
        //    : base(curveId)
        //{
        //    var commodityCurveId = CurveName.Split('-');
        //    if (commodityCurveId.Length != 2)
        //    {
        //    }
        //    else
        //    {
        //        CommodityAsset = CurveName.Split('-')[1];
        //    }
        //}

        private void SetProperties()
        {
            CommodityAsset = PropertyHelper.ExtractCommodityAsset(Properties);
        }