ThrowHelper static class ThrowHelper Documentation Code public static string IfNullOrWhitespace(string argument, string paramName = "") Throws either an ArgumentNullException or an ArgumentException if the specified string is null or whitespace respectively.