I use reflection to access and save properties and fields. However, in order to avoid redundant data, I want to get rid of the support fields for automatically implemented properties, which are also listed as regular fields. It looks like these support fields are called "{PropertyName] k_BackingField", and it seems to me that I could only do this with parsing this line, but I wonder if there is a better approach than relying on an internal, compiler broken name.
Thanks.
source
share