/// <summary> /// Initializes a new instance of the <see cref="PitcherCI"/> class /// </summary> /// <param name="pitcher">A <see cref="PitcherDTO"/> containing information about the pitcher</param> /// <param name="culture">A <see cref="CultureInfo"/> specifying the language of the pitcher</param> internal PitcherCI(PitcherDTO pitcher, CultureInfo culture) : base(pitcher) { Guard.Argument(pitcher, nameof(pitcher)).NotNull(); Guard.Argument(culture, nameof(culture)).NotNull(); Merge(pitcher, culture); }
/// <summary> /// Initializes a new instance of the <see cref="PitcherCI" /> class /// </summary> /// <param name="pitcher">A <see cref="PitcherDTO" /> containing information about the pitcher</param> /// <param name="culture">A <see cref="CultureInfo" /> specifying the language of the pitcher</param> internal PitcherCI(PitcherDTO pitcher, CultureInfo culture) : base(pitcher) { Contract.Requires(pitcher != null); Contract.Requires(culture != null); Merge(pitcher, culture); }
/// <summary> /// Merges the provided information about the current pitcher /// </summary> /// <param name="pitcher">A <see cref="PitcherDTO"/> containing pitcher info</param> /// <param name="culture">A <see cref="CultureInfo"/> specifying the language of the pitcher info</param> internal void Merge(PitcherDTO pitcher, CultureInfo culture) { Guard.Argument(pitcher, nameof(pitcher)).NotNull(); Guard.Argument(culture, nameof(culture)).NotNull(); Name = pitcher.Name; Hand = pitcher.Hand; Competitor = pitcher.Competitor; }
/// <summary> /// Merges the provided information about the current pitcher /// </summary> /// <param name="pitcher">A <see cref="PitcherDTO" /> containing pitcher info</param> /// <param name="culture">A <see cref="CultureInfo" /> specifying the language of the pitcher info</param> internal void Merge(PitcherDTO pitcher, CultureInfo culture) { Contract.Requires(pitcher != null); Contract.Requires(culture != null); Name = pitcher.Name; Hand = pitcher.Hand; Competitor = pitcher.Competitor; }