Representing a C# Generic Method in a UML Class Diagram

后端 未结 3 1275
不思量自难忘°
不思量自难忘° 2020-12-10 15:02

I have the following interface:

public interface IRegisterable
{
   T Register(string username, string passw) where T : User, ICanLogin, new();
}
         


        
3条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 15:28

    A generic class is a Template class in UML see What is the correct way to represent template classes with UML?

    So can't you use thye Parameterized Class in Visio http://etutorials.org/Programming/UML/Chapter+6.+Class+Diagrams+Advanced+Concepts/Parameterized+Class/

提交回复
热议问题