missing feature: set-method access-modifier
Posted: Wed 28 Dec 2011 20:04
On properties (and relation-properties) we have the Modifier setting, which can be configured as Public, Private, Protected, etc.
The problem with that, is that in C# we actually have two access-modifiers, one for the get-method and one for the set-method.
About 75% of the time, these are probably going to be identical - but I have many cases (in an existing model I'm currently rebuilding in ED) where the get-method has a lower access-modifier, e.g. public get and protected set.
To properly support C# accessors, we need something like a SetModifier setting - this could be left empty (or have an additional option called "Same") and by default would use the Modifier setting for the most common cases where both methods have the same access-modifier...
The problem with that, is that in C# we actually have two access-modifiers, one for the get-method and one for the set-method.
About 75% of the time, these are probably going to be identical - but I have many cases (in an existing model I'm currently rebuilding in ED) where the get-method has a lower access-modifier, e.g. public get and protected set.
To properly support C# accessors, we need something like a SetModifier setting - this could be left empty (or have an additional option called "Same") and by default would use the Modifier setting for the most common cases where both methods have the same access-modifier...