[DevExpress Support Team: CLONED FROM T705499: Refactoring – The "Declare property with initializer" refactoring declares the read/write property in a read-only struct]
I used declare auto property ("as", "ai" template) on readonly struct and this template generates read-write properties, which is a bug.
Templates – “as” and “ai” templates generate read/write properties in a read-only struct
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v18.2.8Download Official Update
Hi Karel,
I have reproduced this problem locally. Please give us some time to research the issue in detail.