Example #1
0
 /// <summary>
 ///  Validates a required argument, throwing an ArgumentException
 ///  if it is null, empty or whitespace.
 /// </summary>
 /// <param name="value">The argument value to be validated.</param>
 /// <param name="argumentName">The argument name to appear in the exception.</param>
 /// <exception cref="System.ArgumentException">If the value is null.</exception>
 public static void IsNotNullOrWhiteSpace(string value, string argumentName)
 {
     Insist.IsNotNullOrWhiteSpace(value, argumentName, null);
 }