Skip to content

VB -> C#: WithEvents fields without initializers cause a NullReferenceException #134

@CoderNate

Description

@CoderNate

A WithEvents field in a VB class that doesn't have an initializer causes a NullReferenceException in VisitFieldDeclaration in VisualBasicConverter.NodeVisitor. Input code example:

Class Class1
    WithEvents MyEventClassInstance As MyEventClass
End Class

Pull request to follow.

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