dynamic x = new ExpandoObject();
x.NewProp = string.Empty;
Alternatively:
var x = new ExpandoObject() as IDictionary<string, Object>;
x.Add("NewProp", string.Empty);
More Related Contents:
- Extension method and dynamic object
- What is the ‘dynamic’ type in C# 4.0 used for?
- How to detect if a property exists on an ExpandoObject?
- Will the dynamic keyword in C#4 support extension methods?
- When should one use dynamic keyword in c# 4.0?
- Differences between ExpandoObject, DynamicObject and dynamic
- How do I check if a property exists on a dynamic anonymous type in c#?
- Adding unknown (at design time) properties to an ExpandoObject
- Dynamically implementing an interface in .NET 4.0 (C#)
- Why does this (null || !TryParse) conditional result in “use of unassigned local variable”?
- Why can’t I index into an ExpandoObject?
- how to add new method to TextBox Class [closed]
- How do I reflect over the members of dynamic object?
- VB.NET equivalent for C# ‘dynamic’ with Option Strict On
- Test if a property is available on a dynamic variable
- Does Parallel.ForEach limit the number of active threads?
- Why Interface Layer/Abstract classes required in our project? [closed]
- using ITextSharp to extract and update links in an existing PDF
- Get value of c# dynamic property via string
- How to flatten an ExpandoObject returned via JsonResult in asp.net mvc?
- Return/consume dynamic anonymous type across assembly boundaries
- How to get text between nested parentheses?
- C# 4.0: Can I use a TimeSpan as an optional parameter with a default value?
- Why is list when passed without ref to a function acting like passed with ref?
- Dynamic Lang. Runtime vs Reflection
- Changing datagridview cell color dynamically
- Anonymous Type vs Dynamic Type
- C# – Issues with boxing / unboxing / typecasting ints. I don’t understand
- Accessing controls created dynamically (c#)
- Visual Studio 2010: How to enforce build order of projects in a solution?