/// <summary> /// Checks for a null or empty string and optionally trims the string before testing. /// </summary> /// <param name="param">The string.</param> /// <exception cref="ArgumentNullException"><b>param</b> was null.</exception> public static void CheckNullOrEmpty(this string param) { param.CheckNullOrEmpty(null); }
/// <summary> /// Throws an <see cref="ArgumentException"/> if the string is null or empty. /// </summary> /// <param name="s">The string.</param> public static void CheckNullOrEmpty(this string s) { s.CheckNullOrEmpty(null); }