I have a list of KeyValuePairs (string, bool). I am iterating over the list using a for loop, but when I try and access the key of the kvp at the current index, all I get is the string "Key".
The KeyValuePair is {"DD", false}
Sorry if this is super obvious, but I can't find anyone haveing the same issue.
{
@Html.LabelFor(model => model.Client.PaymentChannels[i].Key)
}
I would expect the Key to be the string "DD", and not the string "Key".
Edited: Sorry I pasted in the wrong piece of code.