开发者

class name using reflection in a VS2010 macro

I have a VS2010 macro that inserts bolierplate header text at top of each class. Running the macro inserts module name, developer, description, etc. as expected.

Instead of typing开发者_如何学运维 the module name, i would like to insert the name into the text. How do I get the class (or form name) name when I run the macro in the selected code page?

I have looked at reflection, but not sure how to get the form/class name my cursor is on for the macro execution

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜