コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="View" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="name">name (required).</param>
 /// <param name="properties">properties (required).</param>
 public View(ViewLinks links = default(ViewLinks), string name = default(string), ViewProperties properties = default(ViewProperties))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for View and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "properties" is required (not null)
     if (properties == null)
     {
         throw new InvalidDataException("properties is a required property for View and cannot be null");
     }
     else
     {
         this.Properties = properties;
     }
     this.Links = links;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PkgChart" /> class.
 /// </summary>
 /// <param name="xPos">xPos.</param>
 /// <param name="yPos">yPos.</param>
 /// <param name="height">height.</param>
 /// <param name="width">width.</param>
 /// <param name="properties">properties.</param>
 public PkgChart(int?xPos = default(int?), int?yPos = default(int?), int?height = default(int?), int?width = default(int?), ViewProperties properties = default(ViewProperties))
 {
     this.XPos       = xPos;
     this.YPos       = yPos;
     this.Height     = height;
     this.Width      = width;
     this.Properties = properties;
 }