Skip to content

"Generate GetHashCode()" is using System.HashCode when it's not available #45995

@davkean

Description

@davkean

This issue #42978, but for VB.

Version Used:

Steps to Reproduce:

            Public Overrides Function GetHashCode() As Integer
                Dim hashCode = 870297925
                hashCode = hashCode * -1521134295 + MyBase.GetHashCode()
                hashCode = hashCode * -1521134295 + IsEquivalentToSubMain.GetHashCode()
                Return hashCode
            End Function

Expected Behavior:

Actual Behavior:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBugIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringshelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions