コード例 #1
0
 public MatingEvent(Frog male, Frog female, DateTime date)
 {
     Male   = male ?? throw new ArgumentNullException(nameof(male));
     Female = female ?? throw new ArgumentNullException(nameof(female));
     Date   = date;
 }
コード例 #2
0
 public PairSelection(Frog male, Frog female, DateTime date)
 {
     Male   = male;
     Female = female;
     Date   = date;
 }