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
strstringString to examine.
parameterNamestringThe 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
valueIEnumerableIEnumerable to examine.
parameterNamestringThe name of the parameter that caused the exception.