Delegating Decorators

Posted by: youve been HAACKED, on 18 Jun 2008 | View original | Bookmarked: 0 time(s)

When approaching an extensibility model, I often find cases in which I want to merely tweak the existing behavior of the default implementation and wish I didnt have to create a whole new specific type to do so. Instead of creating a specific type, I tend to write a decorator class that implements the interface and takes in both the default instance of that interface and a delegate (specified using a lambda of course). Lets look at a quick example to make all this abstract talk more concrete. Im...

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: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 956 | Hits: 45

Similar Posts

  • Nevron .NET Vision 2009 Vol. 1 is now available for download more
  • Delegating Action Result 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