/// <summary> /// Initializes a new instance of the <see cref="SaveMonthCategoryWrapper" /> class. /// </summary> /// <param name="category">category (required).</param> public SaveMonthCategoryWrapper(SaveMonthCategory category = default(SaveMonthCategory)) { // to ensure "category" is required (not null) if (category == null) { throw new InvalidDataException("category is a required property for SaveMonthCategoryWrapper and cannot be null"); } else { this.Category = category; } }
/// <summary> /// Initializes a new instance of the <see cref="SaveMonthCategoryWrapper" /> class. /// </summary> /// <param name="category">category (required).</param> public SaveMonthCategoryWrapper(SaveMonthCategory category = default(SaveMonthCategory)) { // to ensure "category" is required (not null) this.Category = category ?? throw new ArgumentNullException("category is a required property for SaveMonthCategoryWrapper and cannot be null"); }