Pattern Focus: Strategy Pattern using delegates

Posted by: Patrik Löwendahls shout, on 09 Feb 2007 | View original | Bookmarked: 0 time(s)

Interfaces are the classical way of implementing the strategy pattern, but with .NET we get another similar approach to technically accomplish the same thing. That is by utilizing delegates as part of our parameters list and C# anonymous delegates as our vessel for the strategy.The first ever discussion I had with Erik Drnenburg  (http://www.doernenburg.com/) was about delegates, he categorized them as a template interface with one method. While this is not true to a full extent, since they...

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.

Similar Posts

  • Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 25: ViewModel more
  • PARTNER SHOWCASE: Northrop Grumman - Innovating for the War Fighter with Microsoft Surface more
  • New Agile Boot Camp Dates (March 11-13) more
  • Scale WCF Application Better with Asynchronous Programming more
  • Infragistics Gives Us Quince - The User Experience Patterns Explorer more
  • Nothin but .NET Developer Boot Camp - Day One EOD Update more
  • Control Freak. more
  • URL Rewriting module for IIS 7 is live more
  • Best practice and effective way of using DataContext in Linq to SQL? more
  • Pattern Focus: Singelton v2.0 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