문제

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

screenshot

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top