Get a method's contents from a cs file

前端 未结 6 1774
孤独总比滥情好
孤独总比滥情好 2021-01-19 10:40

I have a requirement to get the contents of every method in a cs file into a string. What I am looking for is when you have an input of a cs file, a dictionary is returned w

6条回答
  •  情深已故
    2021-01-19 11:09

    NRefactory is the tool for this job. Take a look here: http://laputa.sharpdevelop.net/content/binary/NRefactory.wmv

提交回复
热议问题