Skip to content

[Analyzer Suggestion] Remove repetetive type in VB #45166

@Youssef1313

Description

@Youssef1313

Assume we have a class called Student and is instantiated like below:

Dim studentX As Student = New Student(......)

It can be simplified to:

Dim studentX As New Student(......)

For a longer class name, it gets much more cleaner with the second case.

The analyzer should be able to do the same with Using statement as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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