dotnet/roslyn

Make a built-in symbol for the nameof() operator

Open

#373 aberto em 10 de fev. de 2015

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)C# (4.257 forks)batch import
Area-CompilersBugLanguage-C#Language-VBhelp wanted

Métricas do repositório

Stars
 (20.414 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)

Description

The compiler already provides symbols for built-in operators such as +(int,int). I think this would be one of those built-in operators, probably something like

public string nameof(object arg);

even though the argument might be something like a namespace.

This would (only) be visible through the SemanticModel API.

[Ported from TFS DevDiv 1078941]

Guia do colaborador