Пример #1
0
        public static MonthYearRange CreateForEndMonthAndMonthsBack(
            MonthYear endMonthYear, int monthsBack)
        {
            var startMonthYear = endMonthYear.AddMonths((monthsBack * -1) + 1);

            var forEndMonthAndMonthsBack = new MonthYearRange(startMonthYear, endMonthYear);

            return(forEndMonthAndMonthsBack);
        }
Пример #2
0
 protected bool Equals(MonthYearRange other)
 {
     return(Equals(StartMonth, other.StartMonth) && Equals(EndMonth, other.EndMonth));
 }