Skip to content

Analyzer for the nameof expression instead of using the typeof(SomeType).Name #44162

@mikadumont

Description

@mikadumont

Analyzer for the nameof expression instead of using the typeof(SomeType).Name to get the name of the current type.

Before:

var name = typeof(SomeType).Name;

After:

var name = nameof(SomeType);

Note: we currently have an analyzer doing nameof analysis in place of a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions