Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys, was wondering if any of you could give me guidance on how to create a enum using the class diagram. Im fine doing it in code. When i try and do it using the class diagram, the enum is not nested in the class i want, its by itself. How do i bind or nest it in a class using the class diagram?


Im using Visual studio 10. Im trying to create the enum in a certain class. There is class diagram tools, and enum is there but when i create it i dont know how to make it part of a certain class in the class diagram.

If i create the enum in code its fine cause im creating the enum in the class itself, but for training purposes im trying to create the enum in the class diagram.
Posted
Updated 16-Apr-12 22:15pm
v2
Comments
Lakamraju Raghuram 17-Apr-12 3:23am    
what is the modelling tool you are using?
member60 17-Apr-12 4:14am    
use improve question tag for providing more infomation instead of new post
bdeklerk 17-Apr-12 5:00am    
Noted. Thanks

I do think you can do it while drawing the diagrams, instead create the class with the nested Enum and drag the class into you diagram. Then if you expand the class, you can see a Nested types section. where all the nested types will be listed.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900