static void DoCheck(object toCheck, string name) { if (toCheck == null) throw new ArgumentNullException(name); }