Skip to content

VB -> C# As lacks surrounding paranthesis #178

@MarcusAndren2

Description

@MarcusAndren2

Input code

TryCast(New Object(), Object).ToString()

Erroneous output

new object() as object.ToString();

Expected output

(new object() as object).ToString();

Details

Product in use: VS Extension
Version in use: 6.0.0

Convert fails to add parentheses around the resulting As expression when needed.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions