Share via


Check.NotEmptyNotNull(String, String) Method

Definition

Checks if the string argument passed in is NonEmpty and NotNull Throws NullReferenceException if the arugment is Null or Empty

public static void NotEmptyNotNull (string argument, string argumentName = "argument");
static member NotEmptyNotNull : string * string -> unit
Public Shared Sub NotEmptyNotNull (argument As String, Optional argumentName As String = "argument")

Parameters

argument
String

arument info for logging purpose

argumentName
String

argument info for logging

Applies to