Get a method's contents from a cs file

前端 未结 6 1782
孤独总比滥情好
孤独总比滥情好 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:01

    after you find the function headers, count the number of braces until you find the end of the function.

提交回复
热议问题