我有一段代码如下:
IDictionary<string, string> dictionary = new Dictionary<string, string>(){
{ "de-DE", "German"},
{ "en?GB", "English"},
{ "en?US", "English"},
{ "es?ES", "Spanish"},
{ "es?MX", "Spanish"},
{ "fr?CA", "French"},
{ "fr?FR", "French"},
{ "hu?HU", "Hungarian"},
{ "pl?PL", "Polish"},
{ "pt?PT", "Portuguese"},
{ "nl?NL", "Dutch"},
{ "nb?NO", "Norwegian"},
{ "sv?SE", "Swedish"},
{ "it?IT", "Italian"},
};
bool check = dictionary.ContainsKey("en-US");
Console.WriteLine(check);
Run Code Online (Sandbox Code Playgroud)
的check回报false.有人可以帮忙解释一下吗?