Representing A Generic IList<T> in UML Notation
So, I have a method that returns a generic IList as follows: public IList GetList();
. How you represent that in a 开发者_JAVA技巧UML class diagram?
Thanks.
In a UML diagram, a generic or template class would indicate that it aggregates type/class T. Class AClass---aggregates---->T
I don't think you can. It only shows the return type, and the reader must notice that this type is generic.
But what if you simply write IList as return type?
See also this post
精彩评论