title: How to get list of all document libraries from sharepoint site programatically
body: <p>I am using below code which gives me both list &amp; document library; but I am trying to get list of only document libraries.
  Please help me how to differentiate list &amp; document library programatically
  <br></p>
  
  <pre><code>using(SPSite oSite = new SPSite("https://server/site"))
      {
          using (SPWeb oWeb = oSite.OpenWeb())
          {
              SPListCollection oLists = oWeb.Lists;
  
              foreach (SPList olist in oLists)
              {
                  Response.Write(olist.Title+"&lt;br&gt;");
  
              }
          }
      }
  </code></pre>