public static void GuardArgumentNull(this object arg, string argName) { if (arg == null) { throw new ArgumentNullException(argName); } }