Regex for parsing methods in csharp code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • skneife@gmail.com

    Regex for parsing methods in csharp code

    I have built an AddIn for VS2005 and I need to parse a source cs file
    inside
    the IDE.
    My goal is to search all method in a file using regex class.
    Does anyone know how to create the regex paradigm for matching method
    in a
    class?

    Sam

  • Sheng Jiang[MVP]

    #2
    Re: Regex for parsing methods in csharp code

    use System.CodeDom. Compiler.CodeCo mpiler

    --
    Sheng Jiang
    Microsoft MVP in VC++
    <skneife@gmail. comwrote in message
    news:1192481403 .407584.22790@t 8g2000prg.googl egroups.com...
    I have built an AddIn for VS2005 and I need to parse a source cs file
    inside
    the IDE.
    My goal is to search all method in a file using regex class.
    Does anyone know how to create the regex paradigm for matching method
    in a
    class?
    >
    Sam
    >

    Comment

    Working...