Let’s say you have a class like that:
public class Student { public string Name { get; set; } public string Surname { get; set; } public DateTime DateCreated { get; set; } ... }
If you want to join the name values of that class then you can use the code below:
using System.Linq //Assume that your list defined like that: mathClass.Students = List<Student>(); string myStringJoinValue = string.Join(",", mathClass.Students.Select(r => r.Name));