Tip/Trick: Building a ToJSON() Extension Method using .NET 3.5

Posted by: ScottGus Blog, on 02 Oct 2007 | View original | Bookmarked: 0 time(s)

Earlier this year I blogged about a new language extensibility feature of C# and VB called "Extension Methods".  Extension methods allow developers to add new methods to the public contract of an existing CLR type, without having to sub-class it or recompile the original type.  In doing so they enable a variety of useful scenarios (including LINQ).  They also provide a really convenient way to add a dash of "syntactic sugar" into your code. Over the last few...

Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 683 | Hits: 15

Similar Posts

  • The MethodLinq concept more
  • Validation - Part 2 - Client-Side more
  • Extending Depender with your own custom dependency rules more
  • Statically-typed reflection with LINQ more
  • WCF - Syndication Extensions more
  • Strong-typed reflection with LINQ more
  • Extending HealthVault data types using HealthRecordItemExtension more
  • Using Extension methods in Fx 2.0 projects more
  • AjaxPro and the jQuery JavaScript Provider more
  • Writing real unit tests for your custom FxCop rules 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