1

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.

Luis Aguilar
  • 4,331
  • 6
  • 36
  • 55
  • Possible duplicates of http://stackoverflow.com/questions/2080734/representing-a-c-generic-method-in-a-uml-class-diagram and http://stackoverflow.com/questions/860501/what-is-the-correct-way-to-represent-template-classes-with-uml – sgriffinusa Dec 23 '10 at 03:10
  • I know how to represent classes, what I want to represent is the method IList return type. – Luis Aguilar Dec 23 '10 at 03:22

2 Answers2

1

In a UML diagram, a generic or template class would indicate that it aggregates type/class T. Class AClass---aggregates---->T

sj755
  • 3,944
  • 14
  • 59
  • 79
0

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

Community
  • 1
  • 1
Julio Guerra
  • 5,523
  • 9
  • 51
  • 75