Esempio n. 1
0
 public static Month Create(int year, MonthName monthName) => new Month(year, monthName);
Esempio n. 2
0
 public static Month Create(int year, int month) => new Month(year, MonthName.Create(month));
Esempio n. 3
0
 private Month(int year, MonthName monthName)
 {
     Year      = year;
     MonthName = monthName;
     Value     = new DateTime(Year, MonthName.Index, 1);
 }