Table of Contents

Method NonNullOrEmpty

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

NonNullOrEmpty(string, string)

Checks whether specified string is not null or an empty string. If string is null or empty throws an exception.

public static void NonNullOrEmpty(string str, string parameterName)

Parameters

str string

String to examine.

parameterName string

The name of the parameter that caused the exception.

NonNullOrEmpty(IEnumerable, string)

Checks whether specified value is not null or an empty value. If value is null or empty throws an exception.

public static void NonNullOrEmpty(IEnumerable value, string parameterName)

Parameters

value IEnumerable

IEnumerable to examine.

parameterName string

The name of the parameter that caused the exception.