title: Parse c# class file to get properties and methods
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/81406/parser-for-c-sharp">Parser for C#</a>  </p>
  </blockquote>
  
  
  
  <p>Say if I had a simple class such as inside a textbox control in a winforms application:</p>
  
  <pre><code>public class Person
  {
      public string Name { get; set; }
      public int Age { get; set; }
  
      public void DoSomething(string x)
      {
          return "Hello " + x;
      }
  }
  </code></pre>
  
  <p>Is there an easy way I can parse the following items from it:</p>
  
  <ul>
  <li>Class Name</li>
  <li>Properties</li>
  <li>Any public methods</li>
  </ul>
  
  <p>Any ideas/suggestions appreciated.</p>