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

Pull Member Up

Moves a member to the specified base type. You can select a base type from the smart tag context menu.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is on a class member, provided that the base class code is available in the current solution.

Examples

class BaseClass
{

}
class BaseTestClass : BaseClass
{

}
class TestClass: BaseTestClass
{public int MyProp { get; set; }
}
Class BaseClass

End Class
Class BaseTestClass
    Inherits BaseClass

End Class
Class TestClass
    Inherits BaseTestClass
    Private _MyProp As IntegerPublic Property MyProp() As Integer
        Get
            Return _MyProp
        End Get
        Set(ByVal value As Integer)
            _MyProp = value
        End Set
    End Property
End Class

Result:

class BaseClass
{
    public int MyProp { get; set; }
}
class BaseTestClass : BaseClass
{

}
class TestClass: BaseTestClass
{

}
Class BaseClass

    Private _MyProp As IntegerPublic Property MyProp() As Integer
        Get
            Return _MyProp
        End Get
        Set(ByVal value As Integer)
            _MyProp = value
        End Set
    End Property
End Class
Class BaseTestClass
    Inherits BaseClass

End Class
Class TestClass
    Inherits BaseTestClass
End Class

Screenshot

rsPullMemberUp