Method IsNullOrNotEmpty

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Misc

Assembly

MongoDB.Driver.dll

IsNullOrNotEmpty(string, string)

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

public static string IsNullOrNotEmpty(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.