The "Convert to Auto-implemented Property" refactoring is not available for readonly fields.
Consider the following class:
C#class MyClass
{
private readonly string m_myProp;
public string MyProp
{
get { return m_myProp; }
}
}
The "Convert to Auto-implemented Property" should be available for "MyProp" and convert it into the following:
C#class MyClass
{
public string MyProp { get; }
}
Thanks for pointing the problem out, I agree that the "Convert to Auto-Implemented property" feature should be available in the current case (with read-only fields).
We try to fix the bug as soon as possible and notify you about fixing in the context of the current ticket.