稍后编辑以澄清用例
一个额外的限制是,我将在Silverlight应用程序中运行所有这些,所以额外的运行时不是一个选项,而不知道如何在运行中生成代码将工作.
object anon = Activator.CreateInstance(existingObject.GetType());