public static Type CreateDynamicType(string typeName = "Test") { var cols = new MockTableColumn[] { new("Id", typeof(int)), new("Name", typeof(string)) }; // 创建动态类型基类是 DynamicObject var instanceType = EmitHelper.CreateTypeByName(typeName, cols, typeof(DynamicObject)); return(instanceType !); }