Please ensure the arguments are not null and throw an `ArgumentNullException` if they are.