private static void CheckArgumentNull(object param, string paramName) { if (param == null) { throw new ArgumentNullException(paramName); } } }