using System.Collections.Generic;
public static void Main(string[] args)
var people = new List<Person>() {
new Person("Swagat","Active","01/03/2017"),
new Person("Swagat","InActive","01/03/2018"),
new Person("Swagat","Deleted","04/05/2018")
foreach(var p in people){
Console.WriteLine(p.Name);
public Person(string name, string status, string startDate)
StartDate = Convert.ToDateTime(startDate);
public string Name { get; set; }
public string Status { get; set; }
public DateTime StartDate { get; set; }