CppSharp icon indicating copy to clipboard operation
CppSharp copied to clipboard

Consider leaving getters returning objects by value as methods

Open ddobrev opened this issue 4 years ago • 0 comments
trafficstars

When a method which can be converted to a getter (of a property) returns an object by value, syntax such as:

obj.Property.Subproperty = value;

doesn't work because the modification is only applied to a hidden copy. So maybe these methods shouldn't map to properties in order to give users the correct expectations.

ddobrev avatar Nov 26 '20 17:11 ddobrev