c# - A substitute for ExpandoObject in .NET 3.5 with least overhead -
how can imitate functionality of expandoobject in .net 3.5 application least overhead? best lead far use lin fu framework ( http://www.codeproject.com/kb/cs/linfupart2.aspx ), i'm thinking there may better.
to give better idea of going here, objective dynamically create type parameters of methodinfo
. so, want turn this:
public class serviceobject { public void execute(string transformmeintoaproperty); }
into
public class serviceobjectexecutesignature { public string transformmeintoaproperty{ get; set;} }
at runtime. have able access parameters using reflection, because using linq expressions.
you use codedom dynamically compile new types @ runtime. there's upfront cost of doing that....i suppose depends on lifetime of types generating.
Comments
Post a Comment