任何人都可以解释为什么我没有看到WriteLine的(我)预期的输出? 我可以看到它,当我在VS中调试它并刷新'结果',以查看其VS内的本地窗口中的内容。 THXLINQ,Lambda,困惑
Func<Category, bool> del = (Category cat) => {
System.Console.WriteLine(cat.CategoryName);
return cat.CategoryID > 1;
};
NorthwindEntities nw = new NorthwindEntities();
var result = nw.Categories.Where<Category>(del);
Console.Read();
嗨,欢迎来到StackOverflow,你可以发布一些预期的输入/输出和你实际得到的? – 2013-03-20 14:13:27
你期望看到输出结果在哪里?这是一个控制台应用程序? – 2013-03-20 14:14:25