Esempio n. 1
0
 /// <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.");
 }
Esempio n. 2
0
 public GmFruit(Apple?apple, Banana banana, string?color = default)
 {
     Apple  = Apple;
     Banana = Banana;
     Color  = color;
 }
Esempio n. 3
0
 public Fruit(Banana banana, string?color = default)
 {
     Banana = banana;
     Color  = color;
 }
Esempio n. 4
0
 /// <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;
 }