Created
June 29, 2015 14:22
-
-
Save mehmetyilmaz001/238d50fbea598b544e59 to your computer and use it in GitHub Desktop.
mali expando dynamic object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static dynamic GetDynamicObject(Dictionary<string,object> properties) { | |
var dynamicObject = new ExpandoObject() as IDictionary<string, Object>; | |
foreach (var property in properties) { | |
dynamicObject.Add(property.Key,property.Value); | |
} | |
return dynamicObject; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment