[c#] how to pass list as parameter in function