Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the experimental feature "indexed members"?

Tags:

c#

roslyn

c#-6.0

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.

like image 909
Daniel Avatar asked Apr 04 '14 19:04

Daniel


1 Answers

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

like image 96
Will Newton Avatar answered Oct 09 '22 00:10

Will Newton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!