ExpandoObject Explained In Tests (Except For One Mystery)

Posted by: K. Scott Allen, on 08 Nov 2010 | View original | Bookmarked: 0 time(s)

The following tests all pass for .NET 4.0s ExpandoObject. private dynamic expando = new ExpandoObject(); [Test] public void Can_Add_A_Member() { var expected = "Scott"; expando.Name = expected; Assert.AreEqual(expected, expando.Name); } [Test] public void But_Cannot_Reflect_It() { expando.Name = "Scott"; Assert.IsNull(expando.GetType().GetProperty("Name")); } [Test] public void Is_A_Dictionary() { var expected = "Scott"; var dictionary...

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

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