独特价值 [英] Unique value

查看:69
本文介绍了独特价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有月份和年份的对象集合.我想从该集合中获取年份和月份的所有唯一值.

I have object collection of month and year. From that collection I want to take a all unique value of year and month is it possible.

推荐答案

是的,这很有可能.
唯一的LINQ查询应该执行此操作.

有关示例,请参见此处 [
Yes it is quite possible.
A Distinct LINQ query should do it.

For samples, see here[^].


我有一个bindinglist(of T)这个收藏集保存了这个收藏集中的月份和年份,我如何才能获得独特的月份和年份
i have a collection object of bindinglist(of T) this collection hold months and years from this collection how can i get unique month and year


这篇关于独特价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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