How do we name a dictionary variable?
Say in my method I have Dictionary
, where the keys of the dict
Naming is always contextual. So in this specific case some name specifying the country to state mapping is appropriate.
if this was just a device for a loop within a larger context and then discarded, I normally just go with a short temp type var like...
var dict = GetCountryStateMapping();
foreach(var item in dict)
{
//Something....
}