/// <summary> /// Initializes a new instance of the <see cref="AperturePropertiesAbridged" /> class. /// </summary> /// <param name="energy">energy.</param> /// <param name="radiance">radiance.</param> public AperturePropertiesAbridged ( // Required parameters ApertureEnergyPropertiesAbridged energy = default, ApertureRadiancePropertiesAbridged radiance = default // Optional parameters ) : base() // BaseClass { this.Energy = energy; this.Radiance = radiance; // Set non-required readonly properties with defaultValue this.Type = "AperturePropertiesAbridged"; }
/// <summary> /// Initializes a new instance of the <see cref="AperturePropertiesAbridged" /> class. /// </summary> /// <param name="energy">energy.</param> /// <param name="radiance">radiance.</param> public AperturePropertiesAbridged ( // Required parameters ApertureEnergyPropertiesAbridged energy = default, ApertureRadiancePropertiesAbridged radiance = default // Optional parameters ) : base() // BaseClass { this.Energy = energy; this.Radiance = radiance; // Set non-required readonly properties with defaultValue this.Type = "AperturePropertiesAbridged"; // check if object is valid, only check for inherited class if (this.GetType() == typeof(AperturePropertiesAbridged)) { this.IsValid(throwException: true); } }