title: Declare Generic method in non generic interface
body: <p>Please consider this code:</p>
  
  <pre><code>public interface ImyInterface
  {
      T GetEntity&lt;T&gt;(T t,int MasterID);
  }
  </code></pre>
  
  <p>I declare a class name : <code>MyEntity</code> and it has a property with name <code>A_1</code></p>
  
  <pre><code>public class BL_Temp : ImyInterface
  {
      public MyEntity GetEntity&lt;MyEntity&gt;(MyEntity t, int MasterID)
      {
          t.A_1 = ""; //Error
          return t;
      }
  }
  </code></pre>
  
  <p>the error is :</p>
  
  <blockquote>
    <p>'MyEntity' does not contain a definition for 'A_1' and no extension method 'A_1' accepting a first argument of type 'MyEntity' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>Does it possible to declare a generic method in non generic interface?</p>
  
  <p>where is my mistakes? </p>
  
  <p>thanks</p>
  
  <hr>
  
  <p><strong>Edit1)</strong></p>
  
  <p>Consider <code>MyEntity</code> declaration is :</p>
  
  <pre><code>public class MyEntity
  {
      public string A_1 {set; get;}
  }
  </code></pre>