Beispiel #1
0
        public JulianCalendarMonth(JulianCalendarYear year, CalendarMonth month)
        {
            Days = new Dictionary <int, JulianCalendarDay>();

            Year  = year;
            Month = month;

            GenerateDays();
        }
Beispiel #2
0
        public JulianCalendarYear Year(int year)
        {
            if (year < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(year), "Year must be positive");
            }

            if (!_years.TryGetValue(year, out JulianCalendarYear calendarYear))
            {
                calendarYear = new JulianCalendarYear(year);
                _years.Add(year, calendarYear);
            }

            return(calendarYear);
        }