I though I knew all the tricks on the map but recently I saw an assignment where the following is listed as a part of unit test. I've looked at SO and DotNetPearls but couldn't see anything that would catch my eye.
var dictionary = new Dictionary
{
[a] = a,
[b] = b,
[c] = c
};
What kind of syntax is it? Where can I find more info about it?
The syntax is from a code that's a test for job application and I'm not allowed to alter it (although I've already found other irregularities there). The question of the test isn't this particular syntax, of course, it's just a test method used to verify that the actual test satisfies the criteria (but on my VS 17 it doesn't even compile).