My new favorite C# code:
string.Join(",", list.ConvertAll(x => x.ToShortTimeString()))
That takes a list of objects (DateTime in this example) and creates a comma-separated string of it. Short and sweet!
string.Join(",", list.ConvertAll(x => x.ToShortTimeString()))
That takes a list of objects (DateTime in this example) and creates a comma-separated string of it. Short and sweet!