Top "Expandoobject" questions

ExpandoObject is a .NET type whose members can be added and removed at runtime.

Creating a list of ExpandoObjects with properties read from an array

I'm trying to create a dynamic list of objects because I don't know what properties my objects will have until …

c# .net dynamic expandoobject
check to see if a property exists within a C# Expando class

I would like to see if a property exist in a C# Expando Class. much like the hasattr function in …

c# dynamic expandoobject
Dynamically read properties from c# expando object

Currently I have the following method- public void CreateWorkbook<T>(List<T> ItemList) { PropertyInfo[] properties= typeof(…

c# dynamic expandoobject
Cannot apply indexing with [] to an expression of type 'object' (even though the type is 'dynamic')

I have an ExpandoObject which is created like so: public ExpandoObject Get() { var expando = new ExpandoObject(); var expandoDic = (IDictionary<…

c# dynamic ienumerable icollection expandoobject
ExpandoObject vs. Dictionary from a performance point of view?

A rather simple question really. I'm working on a project where I need to store and retrieve property values dynamically …

c# dictionary expandoobject
ExpandoObject, anonymous types and Razor

I want to use an ExpandoObject as the viewmodel for a Razor view of type ViewPage<dynamic>. I …

asp.net-mvc-3 dynamic razor anonymous-types expandoobject
.NET 4.0 framework dynamic features in VB with Option Strict On?

Is there any way to use the new dynamic features in the 4.0 framework like ExpandoObject in VB.NET without setting …

vb.net dynamic .net-4.0 expandoobject
Web Api - How to return a dynamic object with 201 status code

I'm trying to return the recently added entity Id in a Web Api action method as a JSON. Example: { bookId = 666 } …

dynamic asp.net-web-api2 expandoobject
Is it possible to add attributes to a property of dynamic object runtime?

I want to add an attribute to property of a dynamic object/expando object runtime, is it possible? What I …

c# dynamic expandoobject
JSON array to ExpandoObject via JSON.NET

I am using the following approach to convert most of my API JSON results into an object: public void ExpandoObject() { …

c# json json.net expandoobject