Why Would I Create A Custom LINQ Operator?

Posted by: K. Scott Allen, on 13 Feb 2009 | View original | Bookmarked: 0 time(s)

Here are three different reasons: For an operation that doesnt exist. For readability. For performance. An example for reason #1 is Bart De Smets ForEach operator. While you are on Barts blog, you can read about the pros and cons of a ForEach in his comments. An example for reason #2 would be a custom join operator. Lets say we are joining an object collection of employees to an object collection of departments. var employeeAndDepartments = employees.Join(departments, employee...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Performance | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 912 | Hits: 29

Similar Posts

  • Designer Support for One-Way navigations in Entity Framework 4 more
  • How To: Silverlight grid hierarchy load on demand using MVVM and RIA services more
  • Migrated from Community Server to DasBlog more
  • Fun with Func<T,TResult> Delegates, Events and Async Operations more
  • Serialising Microsoft StreamInsight QueryTemplates more
  • Customizing the SharePoint ECB with Javascript, Part 3 more
  • Why VBA Still Makes Sense more
  • Customizing the SharePoint ECB with Javascript, Part 1 more
  • Ruminations on Multi-Tenant Data Architectures more
  • An Extensive Examination of LINQ: Grouping and Joining Data more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD