Here is my try
public MyClass
{
public Guid ID {set; get;}
public DateTime CreatedDateTime {set; get;}
}
ConcurrentDictionary<Guid, MyClass> dic = new ConcurrentDictionary<Guid,MyClass>();
I try this but I got some trouble…
dic.OrderBy(i=>i.Value.CreatedDateTime);
I got an error like
Cannot implicitly convert type 'System.Linq.IOrderedEnumerable'
Any clue? Thanks!!
try
dic.Values.OrderBy(i=>i.CreatedDateTime)