Sorting a list of <Object> with VB and LINQ

后端 未结 2 841
既然无缘
既然无缘 2021-02-20 16:23

I\'m trying out some LINQ expressions and can\'t get them to work with the List class. Basically I want to be able to sort a list of custom objects by property type, however t

2条回答
  •  温柔的废话
    2021-02-20 17:18

    Dim asc = From f In l Order By f.Position
    Dim desc = From f In l Order By f.Position Descending
    

提交回复
热议问题