Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }