public Season(int year, SeasonOfYear seasonOfYear) { //Preconditions.CheckArgumentOutOfRange(nameof(year), year, Constants.MinCalendarYearNum, Constants.MaxCalendarYearNum); // TODO preconditions _value = (year - 1) * 2 + (int)seasonOfYear - 1; }
public void Deconstruct(out int year, out SeasonOfYear seasonOfYear) { year = Year; seasonOfYear = SeasonOfYear; }