Answers for "c# object list sort by property"

C#
1

c# list sort by property string

list.Sort((a, b) =>  a.StringProperty.CompareTo(b.StringProperty));
Posted by: Guest on January-19-2021
0

c# list sort by property string

var sortedQuery = sampleList.OrderBy(x => x.MyProperty);
Posted by: Guest on January-19-2021

Code answers related to "c# object list sort by property"

C# Answers by Framework

Browse Popular Code Answers by Language