This is preliminary documentation and is subject to change.

DateTimeExtensionsIsBetween(Int32, Int32, Int32) Method

Checks if the given value is between the given start and end values, excluding start and end

Definition

Namespace: MoreDateTime.Extensions
Assembly: MoreDateTime (in MoreDateTime.dll) Version: 1.3.0
C#
public static bool IsBetween(
	this int me,
	int start,
	int end
)

Parameters

me  Int32
The integer to compare
start  Int32
The start
end  Int32
The end

Return Value

Boolean
True if the value is greater or equal start and less than or equal end

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also