{"id":6060,"date":"2014-04-12T02:58:30","date_gmt":"2014-04-12T02:58:30","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/a-substitute-for-expandoobject-in-net-3-5-with-least-overhead-collection-of-common-programming-errors-2\/"},"modified":"2014-04-12T02:58:30","modified_gmt":"2014-04-12T02:58:30","slug":"a-substitute-for-expandoobject-in-net-3-5-with-least-overhead-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/a-substitute-for-expandoobject-in-net-3-5-with-least-overhead-collection-of-common-programming-errors-2\/","title":{"rendered":"A substitute for ExpandoObject in .NET 3.5 with least overhead-Collection of common programming errors"},"content":{"rendered":"<p>How can I imitate the functionality of the ExpandoObject in a .NET 3.5 application with the least overhead? My best lead so far is to use the Lin Fu framework ( http:\/\/www.codeproject.com\/KB\/cs\/LinFuPart2.aspx ), but I&#8217;m thinking there may be something better.<\/p>\n<p>To give a better idea of what I am going for here, my objective is to dynamically create the type from the parameters of a <code>MethodInfo<\/code>. So, basically I want to turn this:<\/p>\n<pre><code>    public class ServiceObject\n    {\n        public void Execute(string TransformMeIntoAProperty);\n    }\n<\/code><\/pre>\n<p>into<\/p>\n<pre><code>    public class ServiceObjectExecuteSignature\n    {\n        public string TransformMeIntoAProperty{ get; set;}\n    }\n<\/code><\/pre>\n<p>at runtime. I have to be able to access the Parameters using Reflection, because I am using Linq Expressions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How can I imitate the functionality of the ExpandoObject in a .NET 3.5 application with the least overhead? My best lead so far is to use the Lin Fu framework ( http:\/\/www.codeproject.com\/KB\/cs\/LinFuPart2.aspx ), but I&#8217;m thinking there may be something better. To give a better idea of what I am going for here, my objective [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6060","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6060"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6060\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}