Lambda Groupby有2个或更多属性。为什么这不起作用 [英] Lambda Groupby 2 or more properties. Why is this not working

查看:235
本文介绍了Lambda Groupby有2个或更多属性。为什么这不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


class {

解决方案

也许你应该写'Person []人=新人[8]',然后使用不同的索引:
person [0] person [1] ,..., person [7] 。目前您覆盖并丢失一些数据。 (或使用列表而不是数组)。


如果仍然不起作用,则显示预期结果。


class Person {

解决方案

Maybe you should write ‘Person [ ] persons = new Person[8]’, then use different indices: person[0], person[1], …, person[7]. Currently you overwrite and lose some data. (Or use a list instead of array).

If still does not work, then show the expected results.


这篇关于Lambda Groupby有2个或更多属性。为什么这不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆