谢谢你邀请我与你们共进晚餐的两种说法

问题描述:

谢谢你邀请我与你们共进晚餐的两种说法
thank you for your invitation to have dinner with you可以和thank you for your invitation of having dinner with you 替换么?如果不能,为什么?为什么to have可以修饰一个名词?动词不定式不是当状语么?

应该是这样的
谢谢你邀请我与你们共进晚餐
1 Thank you for inviting me to dinner
2 Thank you for inviting me to have dinner with you.
其他翻译也许是对的,但不符合习惯表达.