Book a Demo

Author Topic: Adding Collection List in Class Diagram list<&a  (Read 2220 times)

balachandar

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Adding Collection List in Class Diagram list<&a
« on: April 03, 2007, 05:01:25 am »
Hi,

i am using a collection class in that i need to inherit the collection

namespace Sample {
[Serializable]
public class AddressBookContactsCollection: [glb]List<AddressBookContacts>[/glb] {
}

can i know how to inherit the list or how to specifiy it in the class diagram



Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Adding Collection List in Class Diagram list&l
« Reply #1 on: April 03, 2007, 01:18:25 pm »
You'll need to set the parent of the class (Ctrl+I) to "List" and the template arguments (Class properties detail tab) to "AddressBookContacts".  This will result in the code you've specified being generated, but nothing about "AddressBookContacts" will be drawn to your diagram.  Alternatively, just set the parent to "List<AddressBookContacts>".
« Last Edit: April 03, 2007, 01:20:37 pm by simonm »