title: List returned from generic class in c# but list(covariant )is not getting updated in main class?
body: <p><em>c# code to return generic List from Class1</em></p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
  Class1&lt;int&gt; obj = new Class1&lt;int&gt;();
  List&lt;int&gt; covariant = new List&lt;int&gt;();
  covariant = obj.mark();
  System.Console.WriteLine(covariant[0]);
  }
  
     public class Class1&lt;T&gt;  
     {
         public List&lt;T&gt; mark()
         {
          List&lt;object&gt; covariant = new List&lt;object&gt;();
          covariant.Add(5);        *unable to get value in covariant list defined. Getting null vlaue*
          return covariant as List&lt;T&gt;;
         }
      }
  </code></pre>
  
  <p><em>unable to get value in covariant list defined. Getting null vlaue</em>
  <em>unable to get value in covariant list defined. Getting null vlaue</em>
  <em>unable to get value in covariant list defined. Getting null vlaue</em>
  <em>unable to get value in covariant list defined. Getting null vlaue</em></p>