title: How to pass List of class to List of Interface?
body: <p>I have a function like this:</p>
  
  <pre><code>DoSomething(List&lt;IMyInterface&gt;)
  </code></pre>
  
  <p>IMyInterface is an interface and MyClass is a class implementing this interface
  Class MyClass:IMyInterface</p>
  
  <p>I call <code>DoSomething(List&lt;MyClass&gt;)</code> and it looks it doesn't work.
  How could I pass the list of a class to a list of the interface of the class as function's parameter? Thanks!</p>