My employer has done the same. They have done more than one round of layoffs, and it's always the same - you get called into a 1-on-1 meeting, and you never return to your desk.
How else would you resign then writing an email? Are you writing a piece of paper? Written seems much more professional then just verbal, leaves no doubts. Sure, you can tell before in person but email seems the best way.