title: Generic interfaces
body: <p>Here is my code</p>
  
  <pre><code>public interface ITranslator&lt;E, R&gt;
  {       
      E ToEntity&lt;T&gt;(R record);
  }
  
  class Gens : ITranslator&lt;string, int&gt;
  {
      #region ITranslator&lt;string,int&gt; Members
  
      public string ToEntity&lt;MyOtherClass&gt;(int record)
      {
          return record.ToString();
      }
  
      #endregion
  }
  </code></pre>
  
  <p>When I compile this, I get an error <code>Type parameter declaration must be an identifier not a type</code></p>
  
  <p>Why is that I cannot have <code>ToEntity&lt;MyOtherClass&gt;</code> but can only have <code>ToEntity&lt;T&gt;</code> ??</p>
  
  <p>Edit: what is <code>MyOtherClass</code> doing ? I am converting between entities(POCOs equivalent of Entity framework) and record(Object returned by the framework)  for multiple tables/classes. So I would want to use this to do my class specific conversion</p>