title: MissingMethodException: Method not found
body: <p>Just not able to understand why I am getting this error. I have code and trying to implement indexer:</p>
  
  <pre><code>public class BOCollection&lt;TKey, TValue&gt;
  {
      IDictionary&lt;TKey, TValue&gt; _privateDictionary = new Dictionary&lt;TKey, TValue&gt;();
      public TValue this[TKey key]
     {
          get{return _privateDictionary[key];}
          set{_privateDictionary[key] = value;}
      }
  
  //Dictionary Methods
  //Other methods
  }
  </code></pre>
  
  <p>There is no compile time error, but getting run time error:</p>
  
  <blockquote>
    <p>Method not found: 'System.Collections.Generic.Dictionary`2 NGC.BO.Base.BOBaseClass.get_Child()'.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/6AXH6.png" alt="enter image description here"></p>