Making short lists from LINQ queries

前端 未结 0 360
清歌不尽
清歌不尽 2020-12-05 08:48

If I have an array of objects with multiple fields - id, name, age, weight, owner - how do I use LINQ to make shorter lists containing only name and owner?

I can writ

相关标签:
回答
  • 消灭零回复
提交回复
热议问题