Contour Integral and Residue Theory for Inverse $z$-Transform

I'm aware that the inverse $$z$$-transform can be evaluated using contour integration which leads to the use of Residue Theory as a corollary and I do know of the two definitions. My question is how does one lead to the other being used? It's been many years since I studied the two.

Thanks.