Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


C# virtual properties


  • Anonymous

    I am trying StarUML for the first time and intend to generate C# code. I
    cannot work out how to

    1: Specify that a property should be virtual
    2: Change the exposure level of just the getter or setter (public property
    with private setter for example)

    Can someone help me out with this please?

  • StarUML is focused on the UML standard and being language independent. So
    modeling language specific artifacts may be hard if UML does not support it.
    Anyway you may achieve some form of it with a stereotypes.

    In the case of properties you may directly declare getter and setter functions
    and set Visibility option showing on the left after double clicking a function
    in a class definition.