Click or drag to resize

LinqExtensionMethodsBetween Method (Int16, Int16, Int16)

Returns if a given Int16 is between a given min and max

Namespace:  Couchbase.Lite.Internal.Linq
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0125
Syntax
C#
public static bool Between(
	this short s,
	short min,
	short max
)

Parameters

s
Type: SystemInt16
The number to test (implicit)
min
Type: SystemInt16
The lower bound
max
Type: SystemInt16
The upper bound

Return Value

Type: Boolean
true if s is between min and max, false otherwise

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int16. 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