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