Create Backing Store

Converts an auto-implemented property to a conventional property with a backing store.

Availability

Available from the context menu or via shortcuts:

  • when the edit cursor or caret is on an auto-implemented property.

Example

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

Result:

private string _PropertyA;
public string PropertyA 
{
    get {
        return _PropertyA;
    }
    set {
        _PropertyA = value;
    }
}
Private _propertyA As Object
Public Property PropertyA() As Object
    Get
        Return _propertyA
    End Get
    Set(ByVal value As Object)
        _propertyA = value
    End Set
End Property

Screenshot

rsCreateBackingStore