The requested page is not available for the requested platform. You are viewing the content for Default platform.

Convert to Auto-implemented Property

Removes the backing store, and converts this property to an Auto-implemented Property.


Available from the context menu or via shortcuts:

  • when the edit cursor or caret is on a property declaration statement. The property should have a simple getter that returns a field, value and a simple setter that assigns that field a value.


private string fPropertyA;

public string PropertyA {
    get { return fPropertyA; }
    set { fPropertyA = value; }
Private fPropertyA As String
Public Property PropertyA
        Return fPropertyA
    End Get
    Set(ByVal value)
        fPropertyA = value
    End Set
End Property


public string PropertyA { get; set; }
Public Property PropertyA() As Object