public static void ThrowArgumentNullExceptionIfObjectIsNull(string objectName, object objectValue) { if (objectValue == null) { throw new ArgumentNullException(objectName, FrameworkResources.Exception_ArgumentCannotBeNull); } }