Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create class diagram in visio 2007.I have developed project in vs2008 using c#.
In the class structure of c# i have create fields,properties and methods like:
C++
 public class student:university<student>
{
    private string _student_name;//It is a field
       
        // Constructor
         public student()
          { _student_name="": }

        //properties
          
       public string StudentName  
        {
            get {return(_student_name);}
            set {_student_name=value;}
         }

       // Methods
      
       public student addstudent(string sname)
          {//Code here}
}</student>


In this class field is private while property is public.as well as it is a derived
class.

my question is how i represent fields,constructor,properties and methods
in class diagram.

please note that in vs2008 i can add this class diagram but i am not able to copy
it in ms-word.

please provide a solution.
Posted
Updated 17-Nov-11 22:32pm
v2
Comments
Mehdi Gholam 18-Nov-11 4:33am    
EDIT -> fixed formatting
Timberbird 18-Nov-11 5:02am    
It is very well covered in UML standard - have you read it? Any answer would only retell that standard, so why not refer to the original document? :)
I, myself, would also advise you to install Visio. Not only this product allows you to draw UML diagrams, it, AFAIR, has integration with VS to the point that it can reverse engineer class structure, turning it into UML diagram
EDIT
I missed the part about Visio in the beginning. So what't the problem? You can reverse engineer your project as described here:
http://office.microsoft.com/en-us/visio-help/about-reverse-engineering-code-to-the-uml-HP081550745.aspx
Then just create new class diagram and drag'n'drop your classes on it. No Word required at all :)
Yogesh1229 18-Nov-11 11:52am    
Thank you for your reply and link Timberbird.
I have studying at your link and try to reverse-engineering.But reverse-engineering is not possible with vs2008.It will possible with vs2005.while there is a embeded reverse-engineering in vs2010.
I have found a reverse engineering process at this link for vs2008
http://msdn.microsoft.com/en-us/library/cc947873(v=VS.90).aspx
but it also does not work.

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