Skip to content

Move Member Up/Down commands do not work in VB.NET #72

@mancze

Description

@mancze

For me the command "Move Member Up/Down" does not work at all. I did not manage to make it work at all. I'm getting the "Nullable object must have value" error message.

2017-09-15_1119

I'm using Visual Studio 2017 for VB.NET development.

By the way the "Go To Previous/Next Member" does not work either. It does nothing. No error message, no beep sound. I'm mentioning it as it might be related. Fortunately this command is replacable with VS's native "Next/Previous Method". It cycles not only methods, but also properties and fields. It skips delegates and events though (so that is why Go To Previous/Next Member" still has sense).

This is the sample class to test with:

Public Class SampleClass

    Public Property First As Boolean

    Public Property Second As String
        Get
            Return Nothing
        End Get
        Set(value As String)
            ' noop
        End Set
    End Property

    Private ReadOnly Property Third As Integer
        Get
            Return 0
        End Get
    End Property

    Public Event OnFooBar()

    Public Delegate Sub DoSomething()

    Public Delegate Function DoSomethingElse() As Boolean

    Private ReadOnly _x As Boolean
    Private ReadOnly _y As Integer
    Private ReadOnly _z As String

    Public Sub New()

    End Sub

    Public Sub Foo()

    End Sub

    Public Function Bar() As Integer
        Return Third
    End Function

End Class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions