单项选择题

—Will you go to the party
—Of course I will______.

A.if having invited
B.if invited
C.if I was invited
D.if I will be invited