Is it possible to call named method within a call to Where?
问题 I am trying to understand some performance implication of Linq from this free ebook by RedGate ftp://support.red-gate.com/ebooks/under-the-hood-of-net-memory-management-part1.pdf On page 157-158 in this book, they created following example. Order[] pastDueAccounts = null; DateTimedueDate = DateTime.Today.AddDays(-7); using(varcontext = new Context()) { pastDueAccounts = context.Accounts.Where(account => account.DueDate < dueDate).ToArray(); } They then re-factored part of lamda expression