Table of Contents

Method IsNullOrGreaterThanZero

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

IsNullOrGreaterThanZero(int?, string)

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

public static int? IsNullOrGreaterThanZero(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.

IsNullOrGreaterThanZero(long?, string)

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

public static long? IsNullOrGreaterThanZero(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.

IsNullOrGreaterThanZero(TimeSpan?, string)

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

public static TimeSpan? IsNullOrGreaterThanZero(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.