Collaboration Diagrams: how to represent setting a variable's and attribute's value to a specified v

Posted by devoured elysium on Stack Overflow See other posts from Stack Overflow or by devoured elysium
Published on 2010-05-30T20:34:09Z Indexed on 2010/05/30 20:42 UTC
Read the original article Hit count: 443

Let's assume I have a class called MyClass with an attribute called MyAttribute and a method called MyMethod(). Inside that method I'd like to have a variable called MyVariable. I'd like to set the value of MyVariable to "MyVariable" and MyAttribute to "MyAttribute" inside the call to MyMethod(). How can I do this in a Collaboration Diagram?

I can't find any info of this kind on the internet and the book I'm studying from (Applying UML and Patterns) is very vague in the details.

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about uml