expandoobject
How to set ExpandoObject's dictionary as case insensitive?
given the code below dynamic e = new ExpandoObject(); var d = e as IDictionary<string, object>; for (int i = 0; i < rdr.FieldCount; i++)[详细]
2023-04-13 09:30 分类:问答Accessing properties of anonymous/dynamic types across dll boundaries gives RuntimeBinderException
In the following开发者_StackOverflow中文版 sample, x.propertyX works fine, whereas y.propertyX gives me a Microsoft.CSharp.RuntimeBinder.RuntimeBinderException, complaining \'propertyX\' is not define[详细]
2023-04-10 13:12 分类:问答Why can't I do this: dynamic x = new ExpandoObject { Foo = 12, Bar = "twelve" }
Am I doing something wrong, or is the following code really not possible? dynamic x = new ExpandoObject { Foo = 12, Bar = \"twelve\" };[详细]
2023-04-06 04:32 分类:问答Does databinding to dynamics and ExpandoObjects work in .NET
For the life of me I I don\'t seem to be able to get Databinding to Dynamics or ExpandoObjects working.[详细]
2023-04-06 00:57 分类:问答what does string GenerateStronglyTypedClass(ExpandoObject object) look like?
Often when I\'m creating MVC views, I first bind my view to an ExpandoObject so I can quickly figure out the shape of my viewmodel, without having to spend time adding/modifying/removing real properti[详细]
2023-03-20 00:48 分类:问答Dynamic(ExpandoObject) vs static type(Model) in asp.net mvc
Dynamic vs static type in asp.net mvc Is car better than motorcycle? It all depends on the scenario you are using it.[详细]
2023-03-12 10:25 分类:问答Is it possible to create a Dynamic tree structure using the ExpandoObject?
at th开发者_开发技巧e moment I am using the ExpandoObject to dynamically store firstname and surname.[详细]
2023-03-08 00:30 分类:问答How can I use collection initializer syntax with ExpandoObject?
I\'ve noticed that the new ExpandoObject implemen开发者_运维问答ts IDictionary<string,object> which has the requisite IEnumerable<KeyValuePair<string, object>> and Add(string, object[详细]
2023-03-03 02:43 分类:问答Is it possible to add attributes to the generated members of an ExpandoObject instance?
I\'m trying to use an ExpandoObject as the SelectedObject of a PropertyGrid. I know how to add the properties I want to the ExpandoObject:[详细]
2023-02-28 02:39 分类:问答.net expando object and LINQ. Possible or not?
I have a simple list of expando objects called products. i add various fields to these objects at runtime ( for example color or size)[详细]
2023-02-19 19:28 分类:问答