コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BulkResponseData" /> class.
 /// </summary>
 /// <param name="bulk">bulk (required).</param>
 public BulkResponseData(BulkResponseDataBulk bulk = default(BulkResponseDataBulk))
 {
     // to ensure "bulk" is required (not null)
     if (bulk == null)
     {
         throw new InvalidDataException("bulk is a required property for BulkResponseData and cannot be null");
     }
     else
     {
         this.Bulk = bulk;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BulkResponseData" /> class.
 /// </summary>
 /// <param name="bulk">bulk (required).</param>
 public BulkResponseData(BulkResponseDataBulk bulk = default(BulkResponseDataBulk))
 {
     // to ensure "bulk" is required (not null)
     this.Bulk = bulk ?? throw new ArgumentNullException("bulk is a required property for BulkResponseData and cannot be null");
 }