Skip to content

VB -> C#: VB With block conversion incorrect with null-conditional operator #1174

@wizzardmr42

Description

@wizzardmr42

VB.Net input code

    With _Data
        x = .x?.Name
    End With

Erroneous output

{
var withBlock = _Data;
x = .x?.Name;
}

Expected output

{
var withBlock = _Data;
x = withBlock.x?.Name;
}

Details

VS Extension 9.2.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    VB -> C#Specific to VB -> C# conversioncompilation errorA bug where the converted output won't compile

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions