title: c# iterate through all class properties and methods for document generation
body: <p>I am making a MSDN style documentation site for the project I am working on. I wonder if there is a way to iterate through all the classes including their public properties/methods and obtain their summary and other properties for the web page generation. Details below:</p>
  
  <p>for Class I need the Name space + summary + inherited class + class definition syntax + public constructors + public properties + public methods</p>
  
  <p>Example:</p>
  
  <pre><code>namespace foo
  {
      /// &lt;summary&gt;
      /// ss
      /// &lt;/summary&gt;
      public class bar : ClassA, InterfaceA
      {
          public bar(int a, int b)
          {
          }
  
          public int Property1 { get;set; }
  
          public int Method1(int a)
          {
              return 1;
          }
      }
  }
  </code></pre>
  
  <p>namespace = foo<br>
  summary = ss<br>
  inherited class = ClassA<br>
  class definition syntax = <code>public class bar : ClassA, InterfaceA</code><br>
  public constructors = bar(int, int)<br>
  public properties = Property1<br>
  public Methods = Method1(int)  </p>
  
  <p>and for all the methods, properties I would need the type, if it is read only ect.</p>
  
  <p>Long story short, basically i want to generate infos that are in MSDN as much as possible. Any help or thoughts is appreciated. </p>