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

Reply via email to