我研究了CodeDom很久,在使用的过程中,有几个方面很难实现.
1.生成枚举
2.生成foreach语句
3.生成 public string TestProperty{get;set;} 这样的属性成员
4.生成switch语句.
5.using范围语句
如果使用字符串拼写,是可以的,当调用CodeDom的API却是很困难.
我研究了CodeDom很久,在使用的过程中,有几个方面很难实现.
1.生成枚举
2.生成foreach语句
3.生成 public string TestProperty{get;set;} 这样的属性成员
4.生成switch语句.
5.using范围语句
如果使用字符串拼写,是可以的,当调用CodeDom的API却是很困难.