dotnet/roslyn

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

Open

#373 opened on 2015年2月10日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)C# (20,414 stars) (4,257 forks)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]

コントリビューターガイド