static void IsNullOrEmpty(string toCheck, string name) { DoCheck(toCheck, name); if (toCheck.Length == 0) throw new ArgumentException("Cannot be empty", name); }