LINQ where or filter c#

后端 未结 5 1435
故里飘歌
故里飘歌 2021-01-24 04:29

I have a collection being returned by a web service. A property of this collection is \"StatusCode\" which is a string value that can be anywhere from 0 to 5 (don\'t ask me why

5条回答
  •  甜味超标
    2021-01-24 04:59

    var wo = from q in workOrders where int.Parse(w.StatusCode) < 3 select w;
    

    Is a cleaner way to do the LINQ query, at least.

提交回复
热议问题