So, I have a method that returns a generic IList as follows: public IList GetList();
. How you represent that in a UML class diagram?
Thanks.
So, I have a method that returns a generic IList as follows: public IList GetList();
. How you represent that in a 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