我试图LINQ查询中的字符串数组上使用Array.Contains: var otherMatchingDevices = from d in selectedDevices
from c in mldb.Companies
where d.CompanyID == c.CompanyID && c.Deleted == 0
whe
这是一种奇怪的魔法,ContainsKey返回false。我试图使用InvariantCulture比较器和相同的结果。 GameCommands = new Dictionary<string, GameCommand>(StringComparer.Ordinal)
{
{"Start new game with deck", StartGame},