Why not generate a UML model that is more neutral to what generated it
or the language it is targeted to?

On reverse engineering create a getter and/or setter method from a C# property

On code generation to C# convert getter/setter method combinations to
required C# property.

Bob.


2008/8/4 Thilina Hasantha <[EMAIL PROTECTED]>:
> Hi All,
>
> I got into a little problem while doing the "CSharp source import" module.
> Most of the parts are ok but importing class properties is the issue. As
> most of you know, unlike in java, C# has a concept called properties. These
> can have getters and setters. We cannot model a property in the same way we
> do for an attribute in java.  If the property has only the getter, we have
> to indicate its state somehow.
>
> We can use stereotypes as a solution. So I'm suggesting the following,
>
> Apply,
>
> <CSharp property (read only)>  when property has only getter
>
> <CSharp property (write only)>  when property has only setter
>
> <CSharp property (read write)>  when property has both getter and setter
>
> Appreciate your suggestions
>
> Regards,
> Thilina
>
> --
> Thilina Hasantha
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to