Method NonNullOrEmpty
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
stringString to examine.
parameterName
stringThe 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
IEnumerableIEnumerable to examine.
parameterName
stringThe name of the parameter that caused the exception.