示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ModelSelection" /> class.
        /// </summary>
        /// <param name="library">The available values are: Lusid, RefinitivQps, RefinitivTracsWeb, VolMaster, IsdaCds (required).</param>
        /// <param name="model">The available values are: SimpleStatic, Discounting, VendorDefault, BlackScholes (required).</param>
        public ModelSelection(LibraryEnum library = default(LibraryEnum), ModelEnum model = default(ModelEnum))
        {
            // to ensure "library" is required (not null)
            if (library == null)
            {
                throw new InvalidDataException("library is a required property for ModelSelection and cannot be null");
            }
            else
            {
                this.Library = library;
            }

            // to ensure "model" is required (not null)
            if (model == null)
            {
                throw new InvalidDataException("model is a required property for ModelSelection and cannot be null");
            }
            else
            {
                this.Model = model;
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ModelSelection" /> class.
 /// </summary>
 /// <param name="library">The available values are: Lusid, RefinitivQps, RefinitivTracsWeb, VolMaster, IsdaCds (required).</param>
 /// <param name="model">The available values are: SimpleStatic, Discounting, VendorDefault, BlackScholes, ConstantTimeValueOfMoney, Bachelier, ForwardWithPoints, ForwardWithPointsUndiscounted, ForwardSpecifiedRate, ForwardSpecifiedRateUndiscounted, IndexNav, IndexPrice, InlinedIndex, ForwardFromCurve, ForwardFromCurveUndiscounted, BlackScholesDigital, BjerksundStensland1993 (required).</param>
 public ModelSelection(LibraryEnum library = default(LibraryEnum), ModelEnum model = default(ModelEnum))
 {
     this.Library = library;
     this.Model   = model;
 }