System.Collections.Generic.IDictionary Extension Methods

ToExpando()

Summary: Converts the IDictionary instance into and ExpandoObject.
C# Example:
IDictionary<string, object> dict = new Dictionary<string, object> {
   { "Key", "Value" },
   { "Key2", 2 }
};
var dynObj = dict.ToExpando();

Last edited Mar 16, 2013 at 12:17 PM by crpietschmann, version 1

Comments

No comments yet.