UML Getters and Setters

C

confused

I use getters and setters to encapsulate private variables in my C# code in
objects. Example:

private long id ;

public long ID
{
get{
return id;
}

set{
id = value;
}
}

Is there a way to depict this in my UML diagrams in Visio 2003? It would be
nice if it generated the code for it as well.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top