/// <summary> /// Initializes a new instance of the <see cref="ContextShadePropertiesAbridged" /> class. /// </summary> /// <param name="energy">energy.</param> public ContextShadePropertiesAbridged ( // Required parameters ContextShadeEnergyPropertiesAbridged energy = default // Optional parameters ) : base() // BaseClass { this.Energy = energy; // Set non-required readonly properties with defaultValue this.Type = "ContextShadePropertiesAbridged"; }
/// <summary> /// Initializes a new instance of the <see cref="ContextShadePropertiesAbridged" /> class. /// </summary> /// <param name="energy">energy.</param> public ContextShadePropertiesAbridged ( // Required parameters ContextShadeEnergyPropertiesAbridged energy = default // Optional parameters ) : base() // BaseClass { this.Energy = energy; // Set non-required readonly properties with defaultValue this.Type = "ContextShadePropertiesAbridged"; // check if object is valid if (this.GetType() == typeof(ContextShadePropertiesAbridged)) { this.IsValid(throwException: true); } }
/// <summary> /// Initializes a new instance of the <see cref="ContextShadePropertiesAbridged" /> class. /// </summary> /// <param name="type">type (default to "ContextShadePropertiesAbridged").</param> /// <param name="energy">energy.</param> public ContextShadePropertiesAbridged(string type = "ContextShadePropertiesAbridged", ContextShadeEnergyPropertiesAbridged energy = default) { // use default value if no "type" provided if (type == null) { this.Type = "ContextShadePropertiesAbridged"; } else { this.Type = type; } this.Energy = energy; }