UML class diagram , How can i draw generic method with type constraint

Hello everybody, I would like to draw this code to class diagram

public interface IDataContext
{
IList GetAll() where T : class, new();
}

could you show me image in visual paradigm
thank

This is the image of your interface.
Screenshot0

It is a sample Class Diagram having generic method with type constraint.
Screenshot1

Screenshots of open specification of “myOperation” operation:



Remind that you to turn on Show Template Parameters in Presentation Options

Thank you for using Visual Paradigm.

Has this functionality been removed?

Dear Kroppeb,

Thank you for your inquiry. The functionality has not been removed. If you cannot see the tab, please click on the tiny triangle at the upper right and enter ‘Template’ to find it out:

If this does not solve your problem, please let me know more about your case.

Best regards,
Jick Yeung

Is this feature (having class diagram with generic/type constraint) only available in desktop app version ? is there any way to also do this in the Online version ?

Hi ElementalC,

Thanks for the post. The Template Parameters feature is only available in the desktop version. For Visual Paradigm Online, you can use rectangles if you want to draw for visualization purposes.

Best regards,
Jick Yeung