/// <summary> /// Initializes a new instance of the <see cref="GmFruit" /> class /// with the <see cref="Banana" /> class /// </summary> /// <param name="actualInstance">An instance of Banana.</param> public GmFruit(Banana actualInstance) { this.IsNullable = false; this.SchemaType = "anyOf"; this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); }
public GmFruit(Apple?apple, Banana banana, string?color = default) { Apple = Apple; Banana = Banana; Color = color; }
public Fruit(Banana banana, string?color = default) { Banana = banana; Color = color; }
/// <summary> /// Initializes a new instance of the <see cref="GmFruit" /> class. /// </summary> /// <param name="apple">apple</param> /// <param name="banana">banana</param> /// <param name="color">color</param> public GmFruit(Apple apple, Banana banana, string color = default) { Apple = apple; Banana = banana; Color = color; }