Table of Contents

IsWithinRange Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/DateTimeExtensions.cs

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

value DateTime

The DateTime to extend.

min DateTime

The minimum value of value.

max DateTime

The maximum value of value.

Returns

bool

true if value is within the specified range of min and max; otherwise false.

IsWithinRange(DateTime, DateTimeRange)

Determines whether the specified value is within range.

public static bool IsWithinRange(this DateTime value, DateTimeRange range)

Parameters

value DateTime

The DateTime to extend.

range DateTimeRange

The DateTimeRange of value.

Returns

bool

true if value is within the specified range; otherwise false.