Table of Contents

Method IsGreaterThanZero

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

IsGreaterThanZero(int, string)

Ensures that the value of a parameter is greater than zero.

public static int IsGreaterThanZero(int value, string paramName)

Parameters

value int

The value of the parameter.

paramName string

The name of the parameter.

Returns

int

The value of the parameter.

IsGreaterThanZero(long, string)

Ensures that the value of a parameter is greater than zero.

public static long IsGreaterThanZero(long value, string paramName)

Parameters

value long

The value of the parameter.

paramName string

The name of the parameter.

Returns

long

The value of the parameter.

IsGreaterThanZero(double, string)

Ensures that the value of a parameter is greater than zero.

public static double IsGreaterThanZero(double value, string paramName)

Parameters

value double

The value of the parameter.

paramName string

The name of the parameter.

Returns

double

The value of the parameter.

IsGreaterThanZero(TimeSpan, string)

Ensures that the value of a parameter is greater than zero.

public static TimeSpan IsGreaterThanZero(TimeSpan value, string paramName)

Parameters

value TimeSpan

The value of the parameter.

paramName string

The name of the parameter.

Returns

TimeSpan

The value of the parameter.