Dynamic in C# 4.0: Introducing the ExpandoObject

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

You have probably already heard about the new dynamic feature in C# 4.0 and how it is used to support COM interop. If you haven't, I strongly recommend reading the following MSDN articles: Using Type dynamic and How to: Access Office Interop Objects by Using Visual C# 2010 Features. Well, where else can you use this new feature? What are the use cases? Where does dynamic dispatch work better than static typing? The quick answer is that whenever you see syntax like myobject.GetProperty("Address"),...

Category: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 3953 | Hits: 175

Similar Posts

  • Html Encoding Nuggets With ASP.NET MVC 2 more
  • Dynamic in C# 4.0: Creating Wrappers with DynamicObject more
  • Fun with C# 4.0s dynamic more
  • Fun With Method Missing and C# 4 more
  • DotNetNuke Case Study: DNNTreeView for Large DNN Applications more
  • Image Transforms with the ASP.NET Generated Image Control more
  • Javascript Array Fun more
  • ASP.NET Dynamic Data: Customize a template field more
  • SESSION NOTES: The Future of C# more
  • Creating a Dynamic Data-Driven User Interface (Part 4) 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