IsWithinRange Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
IsWithinRange(DateTime, DateTime, DateTime)
Determines whether the specified value is within range of min and max.
public static bool IsWithinRange(this DateTime value, DateTime min, DateTime max)
Parameters
valueDateTimeThe DateTime to extend.
minDateTimeThe minimum value of
value.maxDateTimeThe maximum value of
value.
Returns
- bool
trueifvalueis within the specified range ofminandmax; otherwisefalse.
IsWithinRange(DateTime, DateTimeRange)
Determines whether the specified value is within range.
public static bool IsWithinRange(this DateTime value, DateTimeRange range)
Parameters
valueDateTimeThe DateTime to extend.
rangeDateTimeRangeThe DateTimeRange of
value.
Returns
- bool
trueifvalueis within the specifiedrange; otherwisefalse.