Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonthDetailResponseData" /> class.
 /// </summary>
 /// <param name="month">month (required).</param>
 public MonthDetailResponseData(MonthDetail month = default(MonthDetail))
 {
     // to ensure "month" is required (not null)
     if (month == null)
     {
         throw new InvalidDataException("month is a required property for MonthDetailResponseData and cannot be null");
     }
     else
     {
         this.Month = month;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonthDetailResponseData" /> class.
 /// </summary>
 /// <param name="month">month (required).</param>
 public MonthDetailResponseData(MonthDetail month = default(MonthDetail))
 {
     // to ensure "month" is required (not null)
     this.Month = month ?? throw new ArgumentNullException("month is a required property for MonthDetailResponseData and cannot be null");
 }