public static List<Participant> SortedObjects(IEnumerable<Participant> myList) { SortedList<string,Participant> sortedList = new SortedList< string, Participant>(); foreach (Participant participant in myList) { sortedList.Add(participant.RegistrationNo, participant); } return new List<Participant>(sortedList.Values); }
No comments:
Post a Comment