title: How to write comments / documentation for variables / fields / lists in VS 2010?
body: <p>There is</p>
  
  <pre><code>///&lt;summary&gt;
  ///This is summary for some class or method
  ///&lt;/summary&gt;
  </code></pre>
  
  <p>documentation for classes or methods. But how to write this for simple variables or lists?</p>
  
  <p>I use Visual Studio 2010 and when i hover over some list, property or what ever i would like to see some kind of summary (in that little tooltip) i have written to that specific thing.</p>
  
  <pre><code>///&lt;doc&gt;
  ///always use this list!
  List&lt;String&gt; beer = new List&lt;String&gt;();
  </code></pre>
  
  <p>edit: ok, we have found out, that it works as usual as long u comment in your class but OUTSIDE a method or a function!!</p>
  
  <p>Any way to document/comment within a method too?</p>
  
  <pre><code>public class BeerForall
  {
      /// &lt;summary&gt;
      /// it works here
      /// &lt;/summary&gt;
      public List&lt;String&gt; beer = new List&lt;string&gt;();
  
      public String giveBeer()
      {
          /// is not working, u can not comment
          /// &lt;summary&gt;
          /// test test, not working
          /// &lt;/summary&gt;
          List&lt;String&gt; moreBeer = new List&lt;string&gt;();
  
          return "beer";
      }
  }
  </code></pre>