What is the experimental feature “indexed members”?

杀马特。学长 韩版系。学妹 提交于 2019-12-22 02:00:13

问题


On the new Roslyn Preview site it mentions being able to try out potential language features, and lists three such features.

The first two I've heard of before (for example here), but I can't figure out from the code sample what "indexed members" are. Can anyone explain what these are, either based on another source or the code sample? (It's worth nothing $x is not a valid identifier in C# 5.)

UPDATE - According to the Roslyn Feature Status page, this feature has been withdrawn.


回答1:


.$foobar is just short form for ["foobar"]



来源:https://stackoverflow.com/questions/22871426/what-is-the-experimental-feature-indexed-members

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!