Table of Contents

Method IsNotNullOrEmpty

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

IsNotNullOrEmpty(string, string)

Ensures that the value of a parameter is not null or empty.

public static string IsNotNullOrEmpty(string value, string paramName)

Parameters

value string

The value of the parameter.

paramName string

The name of the parameter.

Returns

string

The value of the parameter.

IsNotNullOrEmpty<T>(IEnumerable<T>, string)

Ensures that the value of a parameter is not null or empty.

public static IEnumerable<T> IsNotNullOrEmpty<T>(IEnumerable<T> value, string paramName)

Parameters

value IEnumerable<T>

The value of the parameter.

paramName string

The name of the parameter.

Returns

IEnumerable<T>

The value of the parameter.

Type Parameters

T

The type of the elements.