Private Extension Methods

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

I spent a few hours on a failed experiment recently, but one concept that outlived the spike was how to make use of private extension methods. By private I mean the extension methods have a private access modifier and are only visible inside of a single class. Sounds pointless, right? Consider the code in the following class that is attempting to build multiple script tags out of the names of JavaScript files embedded as resources in an assembly. public static class ScriptHelper { public...

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: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1397 | Hits: 55

Similar Posts

  • Idle Timeouts in RIA Services Authentication more
  • Lower Case URLs and ASP.NET MVC more
  • Unit Testing - Do Repeat Yourself more
  • Looking for Rogue User Objects in Active Directory more
  • Multi-Item Drag and Drop RadListBox more
  • Using Object Container to transport persistent objects between multiple pages more
  • Visual Studio 2010 1-Click Publishing more
  • Validation - Part 2 - Client-Side more
  • You should NOT use ASP.NET MVC if. . . more
  • Handling security for Flex and Silverlight in ASP.NET 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