title: C# Cannot implicitly convert type 'System.Collections.Generic.List<string>' to 'System.Windows.Documents.List'
body: <p>I want to make a method that returns a list. But when I declare the datatype string tot the list it gives me this error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'System.Collections.Generic.List' to 'System.Windows.Documents.List'</p>
  </blockquote>
  
  <p>at the <code>return</code> statement.</p>
  
  <pre><code>private List StockCheck(List&lt;string&gt; ListStockCheck, string[] StringProducts, int[,] productstock)
  {
      for (int product = 0; product &lt; StringProducts.GetLength(0); product++) 
      {               
          for (int dag = 0; dag &lt; this.productStock.GetLength(1); dag++)
          {
              sumP[product] += this.productStock[product, dag];
          }               
          if(sumP[product] &gt;=115 &amp;&amp; sumP[product] &lt;= 190)
          {
              ListVoorraadCheck.Add("De voorraad van " + StringProducts[product] + " is goed!");
          }
      }
      return ListStockCheck;
  }
  </code></pre>
  
  <p>It shows the error on the <code>return ListStockCheck;</code> statement.</p>
  
  <p>Does anyone know how to fix this?</p>