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]

貢獻者指南

Make a built-in symbol for the nameof() operator · dotnet/roslyn#373 | Good First Issue