Dynamic in C# 4.0: Creating Wrappers with DynamicObject

Posted by: C# Frequently Asked Questions, on 19 Oct 2009 | View original | Bookmarked: 0 time(s)

In the previous post I showed how you can use the new dynamic feature and the ExpandoObject class to add and remove properties at run time, and how this can make your code more readable and flexible than code written with LINQ to XML syntax. But there were some obvious flaws in that example: While ExpandoObject provided better syntax, LINQ to XML provided a lot of useful library methods that helped you to work with XML files. So, is it possible to combine those two advantages, to have better syntax...

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: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1476 | Hits: 173

Similar Posts

  • Html Encoding Nuggets With ASP.NET MVC 2 more
  • Image Transforms with the ASP.NET Generated Image Control more
  • DynamicMethod from C# code? more
  • New Dynamic Data Controls ASP.NET : Nifty, But Not Real World more
  • Updated files for Dynamic method caller available... more
  • The power of generics compells you, the power of generics compells you... more
  • Extending dynamic sorting of objects using lightweight code generation. 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