You can pass it as a List<DateTime>
public void somefunction(List<DateTime> dates) { }
However, it is better to use the most common (as usual, basic) interface, so I would use
public void somefunction(IEnumerable<DateTime> dates) { }
or
public void somefunction(ICollection<DateTime> dates) { }
You can also call .AsReadOnly() before passing the list to the method, if you do not want the method to modify the list, add or remove elements.
source share