有如下的自定义List
List<T>
它的值是这样的
{26:"peter",26:"peter",29:"donnie"}
要把26重复的去掉..最后成这样:
{26:"peter",29:"donnie"}
如何弄..谢谢.
------解决方案--------------------------------------------------------
http://www.cnblogs.com/zhongweiv/archive/2011/11/11/IEqualityComparer
------解决方案--------------------------------------------------------
list = list.Distinct();