Quantcast
Channel: C# 4 – theburningmonk.com
Viewing all articles
Browse latest Browse all 10

IDictionary to ExpandoObject extension method

$
0
0
Tweet As you know, the ExpandoObject class implements the IDictionary<string, object> interface, so if you have an ExpandoObject you can easily cast it to an IDictionary<string, object> but there’s no built-in way to easily do the reverse. Luckily, I came across a very useful extension method today which converts an IDictionary<string, object> into an ExpandoObject,

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles



Latest Images