dotnet/roslyn

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

Open

#373 创建于 2015年2月10日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C# (20,414 star) (4,257 fork)batch import
Area-CompilersBugLanguage-C#Language-VBhelp wanted

描述

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]

贡献者指南