我一直想知道为什么equals
linq 连接中有一个关键字而不是使用 == 运算符。
Property deadline =
(from p in properties
join w in widgets
on p.WidgetID equals w.ID
select p).First();
代替
Property deadline =
(from p in properties
join w in widgets
on p.WidgetID == w.ID
select p).First();
[编辑]改写了问题并修改了示例。