Representing a C# Generic Method in a UML Class Diagram

后端 未结 3 1262
不思量自难忘°
不思量自难忘° 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:35

    UML DOES support parametric types (other things can be parametrized as well, and things other than types can be used as parameters as well).

提交回复
热议问题