单项选择题

— You should have thanked her before you left.
— I meant (), but when I was leaving I couldn’t find her anywhere.

A. to do
B. to
C. doing
D. doing so