If you mean C# 3.0 style properties like int prop { get; set; } they are not supported as the currently handled version of C# is just 1.0 (to some extent).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I looked at it closer. Currently for an operation with Property stereotype and Get and Set Tagged Values C# plugin will generate something like:
public int Prop1{
get{
}
set{
}
}
If the parent is an interface it will be:
int Prop1{
get;
set;
}
The first version (for class) will never compile without manual adaptation (missing return) so probably it could be changed to behave like the interface as it is more likely to produce a compilable stub.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok it would be nice if C# profile were updated, and perhaps also with a field, where one can choose if it should be manual (whithout extra space for belonging operation) or auto property.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Is there a way to generate C# code with auto properties?
Or is there any way one could implement it?
If you mean C# 3.0 style properties like int prop { get; set; } they are not supported as the currently handled version of C# is just 1.0 (to some extent).
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Correct, any plans for this feature? Or could one implement it somehow in C# "plugin"?
I looked at it closer. Currently for an operation with Property stereotype and Get and Set Tagged Values C# plugin will generate something like:
If the parent is an interface it will be:
The first version (for class) will never compile without manual adaptation (missing return) so probably it could be changed to behave like the interface as it is more likely to produce a compilable stub.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Ok it would be nice if C# profile were updated, and perhaps also with a field, where one can choose if it should be manual (whithout extra space for belonging operation) or auto property.