Miscarriage and D&C in same day

I had a miscarriage and a d&c on the same day. I was wondering how long it takes to get pregnant after a D&C?