Skip to content

Fix S3453 FP: vb.net Delegate can't be Shared #9828

Description

@TimurKelman

Description

We can't mark Delegate members as Shared.
This causes S3453, even though all other members (except the constructor) are Shared.

Reproducer

Friend NotInheritable Class Testing
    Private Sub New() : End Sub

    Delegate Function SomeDelegate() As Boolean
    Shared Sub SomeMethod(d As SomeDelegate) : End Sub
End Class

Product and Version

SonarQube for Visual Studio, Version: 10.7.0.17183

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions