/// <summary> /// Initializes a new instance of the <see cref="Mammal" /> class /// with the <see cref="Whale" /> class /// </summary> /// <param name="actualInstance">An instance of Whale.</param> public Mammal(Whale actualInstance) { this.IsNullable = false; this.SchemaType = "oneOf"; this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); }
/// <summary> /// Initializes a new instance of the <see cref="Mammal" /> class. /// </summary> /// <param name="whale">whale</param> public Mammal(Whale whale) { Whale = whale; }