title: Pass generic list into ObservableCollection constructor
body: <p>I'm sure I'm missing something here, but any particular reason this doesn't work?</p>
  
  <pre><code>public ObservableCollection&lt;object&gt; ItemCollection { get; set; }
  
  private void SetListData&lt;T&gt;(List&lt;T&gt; MyList)
  {
      ItemCollection = new ObservableCollection&lt;object&gt;(MyList);
  }
  </code></pre>
  
  <p>Is there some value for T where this won't work?  I figure collection of objects would cover every case, but it seems not:</p>
  
  <blockquote>
    <p>Error 2   Argument 1: cannot convert from
    'System.Collections.Generic.List<code>&lt;T&gt;</code>' to
    'System.Collections.Generic.List<code>&lt;object&gt;</code>'</p>
  </blockquote>
  
  <p>Changing the signature of the property would cause a whole new set of problems, so changing it to:</p>
  
  <pre><code>ItemCollection = new ObservableCollection&lt;T&gt;(MyList);
  </code></pre>
  
  <p>doesn't seem like a good solution.  Can anyone tell me why my original code doesn't work, and if there is any easy fix?</p>