title: Class that implements an interface with IList of another interface property...how to?
body: <p>I have two interfaces like these:</p>
  
  <pre><code>public interface IMyInterface1
  {
      string prop1 { get; set; }
      string prop2 { get; set; }
  }
  
  public interface IMyInterface2
  {
      string prop1 { get; set; }
      IList&lt;IMyInterface1&gt; prop2 { get; set; }
  }
  </code></pre>
  
  <p>I have defined two classes that implement the interfaces:</p>
  
  <pre><code>public class MyClass1 : IMyInterface1
  {
       public string prop1 {get; set;}
       public string prop2 {get; set;}
  }
  
  public class MyClass2 : IMyInterface2
  {
       public string prop1 {get; set;}
       public IList&lt;MyClass1&gt; prop2 {get; set;}
  }
  </code></pre>
  
  <p>but when I build the code I have the following error message:</p>
  
  <p>'ClassLibrary1.MyClass2' does not implement interface member 'ClassLibrary1.IMyInterface2.prop2'. 'ClassLibrary1.MyClass2.prop2' cannot implement 'ClassLibrary1.IMyInterface2.prop2' because it does not have the matching return type of 'System.Collections.Generic.IList'</p>
  
  <p>How can I do to implement the "IList prop2" of IMyInterface2 on my class?</p>