public void printlist(list&lt;string&gt;list){