为什么即使字典在调试时显示正确的键/值对,它也没有返回正确的字符串?
IDictionary<string, string> states =
AFS.MvcApplication.UnitedStates.StateDictionary;
string stateAbbrev =
states.Where(x => x.Key == State).Select(x => x.Value).ToString();
为什么即使字典在调试时显示正确的键/值对,它也没有返回正确的字符串?
IDictionary<string, string> states =
AFS.MvcApplication.UnitedStates.StateDictionary;
string stateAbbrev =
states.Where(x => x.Key == State).Select(x => x.Value).ToString();