The code cleanup rule for Make properties auto-implemented converts this code
Visual BasicPublic Class Class1
Private _value As Integer
Public ReadOnly Property Value As Integer
Get
Return _value
End Get
End Property
Public Sub Test()
_value = 1
End Sub
End Class
and converts it to this
Visual BasicPublic Class Class1
Public ReadOnly Property Value As Integer
Public Sub Test()
Value = 1
End Sub
End Class
which does not compile . The assignment Value = 1 is highlighted with error Property 'Value' is 'ReadOnly'
John,
Thank you for the report. I agree with you that "Make properties auto-implemented" should not be available in this case.
I have passed this ticket to our developers to fix this.