Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# convert dictionary to anonymous object

var dict = new Dictionary<string, object> { { "Property", "foo" } };
dynamic eo = dict.Aggregate(new ExpandoObject() as IDictionary<string, Object>,
                            (a, p) => { a.Add(p.Key, p.Value); return a; });
string value = eo.Property;
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity color set alpha 
Csharp :: convert timestamp to datetime c# code 
Csharp :: core Request.CreateResponse 
Csharp :: decode base64 string c# 
Csharp :: string to int c# 
Csharp :: unity C# catch index out or range exception 
Csharp :: c# string to double 
Csharp :: creatw list of int in C# 
Csharp :: c# string to sha256 
Csharp :: c# read file by line 
Csharp :: bin/bash bad interpreter 
Csharp :: get random point in collider unity 
Csharp :: email regex c# 
Csharp :: get datacontext of parent wpf 
Csharp :: c# list all files in a directory and subdirectory 
Csharp :: add row to datagridview c# 
Csharp :: unity stop all audio 
Csharp :: move to another scene unity 
Csharp :: messagebox.show c# error 
Csharp :: on collision 2d unity 
Csharp :: c# windows application get current path 
Csharp :: stock span problem c# 
Csharp :: vs code explorer font size 
Csharp :: there are any objects when open project unity 
Csharp :: c# shuffle string array 
Csharp :: c# declare inline string array 
Csharp :: c# checksum 
Csharp :: unityWebRequest get returned data 
Csharp :: c# read next int Like Java 
Csharp :: C# check if is first run 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =