Table of Contents

Method IsBetween

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.Core.dll

IsBetween<T>(T, T, T, string)

Ensures that the value of a parameter is between a minimum and a maximum value.

public static T IsBetween<T>(T value, T min, T max, string paramName) where T : IComparable<T>

Parameters

value T

The value of the parameter.

min T

The minimum value.

max T

The maximum value.

paramName string

The name of the parameter.

Returns

T

The value of the parameter.

Type Parameters

T

Type type of the value.