The structure I am trying to achieve is a composite Dictionary key which is item name and item displayname and the Dictionary value being the combination of n strings
So I came up with
var pages = new Dictionary<string[], StringBuilder>()
{
{ new string[] { "food-and-drink", "Food & Drink" }, new StringBuilder() },
{ new string[] { "activities-and-entertainment", "Activities & Entertainment" }, new StringBuilder() }
};
foreach (var obj in my collection)
{
switch (obj.Page)
{
case "Food":
case "Drink":
pages["KEY"].Append("obj.PageValue");
break;
...
}
}
The part I am having trouble with is accessing the Dictionary Key pages["KEY"]
How do I target the Dictionary Key whose value at [0] == some value?
Hope that makes sense