コメントありがとうございます。 皆様のコメントのおかげで更新が頑張れます。 これ…
C#のHashTableでキーの存在をチェックする
System.Collections.Hashtable ht = new System.Collections.hashtabne(); ht.add("foo","bar"); if(ht.ContainsKey("foo")) Console.WriteLine("foo is true"); if(!ht.ContainsKey("hoge")) Console.WriteLine("hoge is false");
コメントを残す