HttpServer.Check.NotEmpty C# (CSharp) Method

NotEmpty() public static method

The specified string may not be null or empty.
If contract fails.
public static NotEmpty ( string value, string messageOrParamName ) : void
value string parameter value.
messageOrParamName string parameter name, or a error message.
return void
        public static void NotEmpty(string value, string messageOrParamName)
        {
            if (!string.IsNullOrEmpty(value))
                return;

            Throw(messageOrParamName, FieldNotEmpty);
        }