/// <summary> /// Initializes a new instance of the <see cref="Pig" /> class /// with the <see cref="DanishPig" /> class /// </summary> /// <param name="actualInstance">An instance of DanishPig.</param> public Pig(DanishPig 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="Pig" /> class. /// </summary> /// <param name="danishPig"></param> public Pig(DanishPig danishPig) { DanishPig = danishPig; }