Checks if the parameter argument is not null. If so the method will raise an ArgumentNullException. The name parameter is used in the exception.