title: Representing a C# Generic Method in a UML Class Diagram
body: <p>I have the following interface:</p>
  
  <pre><code>public interface IRegisterable
  {
     T Register&lt;T&gt;(string username, string passw) where T : User, ICanLogin, new();
  }
  </code></pre>
  
  <p><code>User</code> is an abstract class, and <code>ICanLogin</code> is another interface.</p>
  
  <p>Now, I want to represent the above interface with its method in a UML Class Diagram, in Visio.  </p>
  
  <p>How can I represent the above generic method with its constraints in a Class Diagram ? </p>