using System.Collections.Generic;
public static void Main()
IEnumerable<Custom> test = new List<Custom> {new Custom { time = new DateTime(2021, 6,6)} ,new Custom { time = new DateTime(2019, 6,6)}, new Custom { time = new DateTime(2020, 6,6)}};
test = test.OrderByDescending(t => t.time);
Console.WriteLine(i.time);
Console.WriteLine("Hello World");
public DateTime time {get;set;}