Adf.Core.Extensions.DateTimeExtensions.IsInRangeWithinYear C# (CSharp) Метод

IsInRangeWithinYear() публичный статический Метод

public static IsInRangeWithinYear ( this year, System.DateTime start, System.DateTime end ) : bool
year this
start System.DateTime
end System.DateTime
Результат bool
        public static bool IsInRangeWithinYear(this DateTime year, DateTime start, DateTime end)
        {
            return start.DayOfYear <= year.DayOfYear && year.DayOfYear <= end.DayOfYear;
        }