C#のDictionaryのキーに配列を用いたい
辞書のキーにint[]を、値にstringを用いたいと考えていますが、存在しないと判定されています。
以下にコードを記述します、お力添え頂けると幸いです。
Dictionary<int[], string> DICTIONARY = new Dictionary<int[], string>();
DICTIONARY.Add(new int[] {0,1 }, "test");
int[] KEY = new int[] {0,1};
bool HasKey = DICTIONARY .ContainsKey(KEY);
if (HasKey)
{
return DICTIONARY [KEY];
}
よろしくお願いします!

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/25 15:30