Rider suggests converting Property getters to Auto-Props for [SerializedField] fields

Answered

currently if I declare a serialized field and a property that only exposes a getter to this field, Rider will suggest to convert it to an auto-prop and messes everything up.

for example:

public int X => _x;  // Rider wants to convert it to an auto prop. BAD IDEA!!!

[SerializedField]

private int _x;

 

1
2 comments

This is very annoying especially when included in cleanup. It will completely mess up the Unity serialized inspector data.

0

Thank you to Andrej for reporting this issue: RIDER-27839. Please, upvote. 

0

Please sign in to leave a comment.