コメントありがとうございます。 申し訳ございません。 10年近い前の記事と言うこ…
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");
検索

コメントを残す