I would like to do something like the following in C#, but I can't figure out how to instantiate any of the container types in place:
foreach (string aOrB in new Tuple("A","B"))
{
fileNames.Add("file" + aOrB + ".png");
}
I know the typical way it to create the Tuple/Array/Set container in the surrounding scope. Is there something better?