【发布时间】:2014-06-30 14:07:41
【问题描述】:
在 C# 中,我有以下类:
public class SQLColour
{
public string ID { get; set; }
public string Code { get; set; }
public string Name { get; set; }
public string CorporateID { get; set; }
}
我有一个名为 List1 的 List<SQLColour> 和一个名为 List2 的 List<SQLColour>。
我如何返回 List<SQLColour>,其中的项目的 ID 存在于 List1 但不存在于 List2?
提前致谢
【问题讨论】:
标签: c# list class return compare