如何使用Expression创建动态类

时间:2011-10-28 18:37:50

标签: c#-4.0 expression

我想做这样的事情:

Expression<Func<dynamic>> newClassExpression = //Create a new anonymous object
foreach (Expression exp in subSelector)
{
   //Create a new property into newClassExpression to affect exp.Compile().Invoke(f)
}
return newClassExpression.Compile(); //Return here the code for creation of the new class

0 个答案:

没有答案
相关问题