Let's say I have:
Dictionary<string, List<string>> test = new()
{
{ "animal", ["cat", "dog"] },
{ "fruit", ["banana", "apple"] }
};
I can use:
test.SelectMany(x => x.Value);
to get:
["cat", "dog", "banana", "apple"]
But is it possible to get:
[("animal", "cat"), ("animal", "dog"), ("fruit", "banana"), ("fruit", "apple")]
in a simple, readable way using LINQ dot syntax?