{"id":141,"date":"2013-12-03T16:40:08","date_gmt":"2013-12-03T07:40:08","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=141"},"modified":"2016-04-13T19:10:56","modified_gmt":"2016-04-13T10:10:56","slug":"c%e3%81%96%e3%81%a3%e3%81%8f%e3%82%8a-%e3%82%b8%e3%82%a7%e3%83%8d%e3%83%aa%e3%83%83%e3%82%af%e3%81%a8%e3%81%af%e3%81%aa%e3%82%93%e3%81%9e%e3%82%84","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=141","title":{"rendered":"[C#] \u30b8\u30a7\u30cd\u30ea\u30c3\u30af(generic)\u3068\u306f\u306a\u3093\u305e\u3084"},"content":{"rendered":"<p>C#\u3067\u52d5\u7684\u914d\u5217\u3092\u4f7f\u3044\u305f\u3044\u6642\u306b\u3001\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u308b\u3068\u3001<em>ArrayList<\/em> \u3068 <em>List &lt;t&gt; <\/em>\u304c\u3001\u9078\u629e\u80a2\u306b\u3042\u304c\u308b\u3002<br \/>\n\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u3060\u3068\u3001<em> Hashtable<\/em> \u3068 <code><em>Dictionary&lt;TKey, TValue&gt;<\/em> \u304c\u3042\u304c\u308b\u3002<\/code><\/p>\n<p>\u4eca\u307e\u3067\u3001\u3055\u307b\u3069\u4f55\u3082\u8003\u3048\u305a\u4f7f\u3063\u3066\u3044\u305f\u304c\u3001\u3061\u3087\u3063\u3068\u4f7f\u3046\u3053\u3068\u304c\u591a\u304f\u306a\u3063\u305f\u306e\u3067\u3056\u3063\u304f\u308a\u8abf\u3079\u3066\u307f\u305f\u3002<\/p>\n<p>\u7d50\u8ad6\u3060\u3051\u5148\u306b\u66f8\u304f\u3068\u3001<br \/>\n<strong>\u300c\u4eca\u5f8c\u306f ArrayList\u306f\u4f7f\u3046\u306a\u3001List&lt;T&gt;\u3092\u4f7f\u3048\u3001HashTable\u3092\u4f7f\u3046\u306a\u3001Dictionary&lt;T&gt;\u3092\u4f7f\u3048\u3002\u300d<\/strong><br \/>\n\u3063\u3066\u3053\u3068\u3060\u3063\u305f\u3002<br \/>\n\u4ed6\u306b\u3082 <em>SortedList&lt;T&gt; <\/em>\u3068\u304b\u3042\u308b\u3093\u3060\u3051\u3069\u3001\u3068\u306b\u304b\u304f\u3000<em>&lt;T&gt;<\/em>\u3000\u3068\u3064\u3044\u305f\u7269\u3092\u4f7f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u30fc\u3002<br \/>\n\u3089\u3057\u3044\u3002<\/p>\n<p>\u3093\u3067\u306f\u3001\u306a\u305c\u304b\u3092<strong>\u3056\u3063\u304f\u308a<\/strong>\u89e3\u8aac\u3002<\/p>\n<p>\u4eca\u56de\u306f\u53cc\u65b9\u5411List\u3092\u4f8b\u306b\u3068\u3063\u3066\u8aac\u660e\u3059\u308b\u3002<br \/>\nList\u3068\u3044\u3046\u306e\u306f\u3001\u8ffd\u52a0\u3001\u524a\u9664\u3001\u4e26\u3073\u66ff\u3048\u3092\u5b9f\u73fe\u3067\u304d\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0(\u624b\u6bb5\u30fb\u65b9\u6cd5)\u3092\u5b9f\u88c5\u3057\u305f\u3082\u306e\u3067\u3042\u308b\u3002<\/p>\n<p>\u305d\u306e\u4e2d\u8eab\u306f\u3001\u4ee5\u4e0b\u306e3\u3064\u306e\u30c7\u30fc\u30bf\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n\u30fb\u81ea\u8eab\u306e\u30c7\u30fc\u30bf<br \/>\n\u30fb\u524d\u306e\u30c7\u30fc\u30bf\u306e\u30a2\u30c9\u30ec\u30b9<br \/>\n\u30fb\u6b21\u306e\u30c7\u30fc\u30bf\u306e\u30a2\u30c9\u30ec\u30b9<br \/>\n\u8a73\u3057\u304f\u306f\u4e0b\u8a18\u306e\u30b5\u30a4\u30c8\u69d8\u304c\u5206\u304b\u308a\u3084\u3059\u3044\u3002<br \/>\n<a href=\"http:\/\/ufcpp.net\/study\/algorithm\/col_blist.html\">http:\/\/ufcpp.net\/study\/algorithm\/col_blist.html<\/a><\/p>\n<p>\u3093\u3067\u3001C#\u306f\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3068\u8a00\u308f\u308c\u3001\u65e9\u3044\u8a71\u3001PHP\u3084JavaScript\u3068\u9055\u3063\u3066\u3057\u3063\u304b\u308a\u578b\u3092\u5ba3\u8a00\u3059\u308b\u8a00\u8a9e\u3067\u3042\u308b\u3002<br \/>\n\u3060\u304b\u3089\u3001\u4e0a\u306e\u3088\u3046\u306a\u30ea\u30b9\u30c8\u3092\u4f7f\u3046\u5834\u5408\u3001\u4f7f\u7528\u3059\u308b\u578b\u3054\u3068\u306bList\u30af\u30e9\u30b9\u3092\u7528\u610f\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<br \/>\nint\u578b\u306eList\u3001string\u578b\u306eList\u3001\u81ea\u5206\u3067\u4f5c\u3063\u305f\u30af\u30e9\u30b9\u306eList\u3002<br \/>\n\u3060\u3051\u3069\u3001\u305d\u3093\u306a\u30e1\u30f3\u30c9\u30af\u30b5\u30a4\u3053\u3068\u3084\u3063\u3066\u3089\u308c\u306a\u3044\u304b\u3089\u3001\u8ab0\u304b\u304c\u8003\u3048\u305f\u3002<br \/>\n<strong>\u300cC#\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u30af\u30e9\u30b9\u3084\u6587\u5b57\u5217\u7b49\u306e\u53c2\u7167\u578b\u306fObject\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3059\u308b\u3093\u3060\u304b\u3089\u30fb\u30fb\u3001Object\u30af\u30e9\u30b9\u3067List\u4f5c\u3063\u3066\u304a\u3051\u3070\u3001\u5168\u90e8\u3064\u3063\u3053\u3081\u308b\u3058\u3083\u3093\uff01\u300d<\/strong><br \/>\n<strong>\u300cint\u3084double\u306f\u5024\u578b\u3067\u3001\u53c2\u7167\u3059\u308b\u30bf\u30a4\u30d7\u3058\u3083\u306a\u3044\u3051\u3069\u3001\u7121\u7406\u3084\u308aObject\u578b\u306b\u3057\u3066(<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/yz2be5wk%28v=vs.90%29.aspx\">\u30dc\u30c3\u30af\u30b9\u5316<\/a>)\u3001\u4ee3\u5165\u3057\u3088\u3046\uff01\u300d<\/strong><br \/>\n\u3068\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001ArrayList\u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u751f\u307e\u308c\u305f\u3002<br \/>\n\u3069\u3093\u306a\u7269\u3092\u5165\u308c\u3066\u3082Object\u578b\u306b\u5909\u63db\u3055\u308c\u308b\u306e\u3067\u3001\u4f55\u3067\u3082\u5165\u308c\u308c\u308b\u3002<br \/>\n\u53cd\u9762\u3001\u53d6\u308a\u51fa\u3059\u6642\u306f(string)\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u30ad\u30e3\u30b9\u30c8\u304c\u5fc5\u9808\u306b\u306a\u308a\u306f\u3057\u305f\u304c\u3001\u81ea\u5206\u3067List\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u624b\u9593\u306f\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306b\u306f\u554f\u984c\u304c\u3042\u3063\u305f\u3002<br \/>\n\u4f55\u3067\u3082\u5165\u308c\u308c\u308b\u304c\u3001\u9593\u9055\u3063\u305f\u578b\u3092\u5165\u308c\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002(string\u306bint\u3068\u304b)<br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u6642\u70b9\u3067\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u3001\u5b9f\u884c\u4e2d\u306b\u578b\u304c\u9055\u3044\u307e\u3059\u3063\u3066\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<br \/>\n\u81ea\u5206\u3067\u4f55\u306e\u578b\u3092\u5165\u308c\u305f\u304b\u3057\u3063\u304b\u308a\u899a\u3048\u3068\u304b\u306a\u3044\u3068\u3001\u30d0\u30b0\u306e\u5143\u306b\u306a\u308b\u3002<br \/>\n\u3082\u306f\u3084\u3001\u9759\u7684\u578b\u8a00\u8a9e\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u306a\u3044\u3002<br \/>\n\u3055\u3089\u306b\u3001\u6bce\u56deObject\u578b\u306b\u30ad\u30e3\u30b9\u30c8\u3055\u308c\u308b\u306e\u3067\u3001\u304b\u306a\u308a\u7121\u99c4\u3002<br \/>\n\u7279\u306b\u30dc\u30c3\u30af\u30b9\u5316\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3088\u304f\u306a\u3044\u3002<\/p>\n<p>\u3063\u3066\u3053\u3068\u3067\u3001C# 2.0 \u304b\u3089\u5b9f\u88c5\u3055\u308c\u305f\u306e\u304c\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u3002<br \/>\n<strong>\u300c\u3068\u308a\u3042\u3048\u305a\u30af\u30e9\u30b9\u306e\u578b\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u304d\u306b\u6c7a\u3081\u308b\u3068\u3057\u3066\u3001\u305d\u308c\u307e\u3067\u4eee\u306e\u540d\u3067\u7f6e\u3044\u3066\u304a\u3053\u3046\u305c\u3002\u300d<\/strong>\u3068\u3044\u3046\u4ed5\u69d8\u3002<br \/>\n&lt;T&gt;\u3063\u3066\u304a\u3044\u305f\u3089\u3001\u4eee\u306e\u578b\u540d\u3068\u3055\u308c\u305f\u3002<br \/>\n(T\u3058\u3083\u306a\u304f\u3066\u3082\u3044\u3044\u3089\u3057\u3044\u3051\u3069T\u306f\u3068\u306b\u304b\u304f\u3064\u3051\u308b\u6697\u9ed9\u306e\u30eb\u30fc\u30eb\u3089\u3057\u3044)<\/p>\n<p>\u3053\u308c\u3067\u3001\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u3068\u304d\u306f\u3001List&lt;T&gt; \u3068\u3044\u3046\u540d\u524d\u3067\u4f5c\u3089\u308c\u3066\u3001<br \/>\n\u3044\u3056 new \u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u308b\u3068\u304d\u306b\u3001 new List&lt;int&gt; \u3068\u3059\u308b\u3068\u3001\u4eee\u306e\u578b\u540d\u306fint\u3068\u7f6e\u304d\u63db\u3048\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u308b\u3002<br \/>\n\u306a\u306e\u3067\u3001\u30ad\u30e3\u30b9\u30c8\u3082\u3044\u3089\u306a\u3044\u3057\u3001\u578b\u304c\u304a\u304b\u3057\u304b\u3063\u305f\u308a\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u30a8\u30e9\u30fc\u3068\u306a\u308b\u306e\u3067\u3001\u30d0\u30b0\u306e\u5143\u306b\u3082\u306a\u308a\u306b\u304f\u3044\u3002<\/p>\n<p>\u552f\u4e00\u3001\u306a\u3093\u3067\u3082\u7a81\u3063\u8fbc\u3081\u308b\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u304c\u7121\u304f\u306a\u3063\u305f\u3051\u3069\u3001\u305d\u3082\u305d\u3082\u305d\u3093\u306a\u3053\u3068\u6ec5\u591a\u306b\u3057\u306a\u3044\u3057\u3001\u3084\u308a\u305f\u3051\u308c\u3070 List&lt;Object&gt; \u3067\u5b9f\u73fe\u3067\u304d\u308b\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u7d50\u679c\u3001ArrayList\u306f\u308f\u3056\u308f\u3056\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u304c\u5168\u304f\u306a\u304f\u306a\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n<p>\u3089\u3057\u3044\uff01<br \/>\n\u3056\u3063\u304f\u308a\u3068\u3057\u304b\u7406\u89e3\u3057\u3066\u306a\u3044\u304b\u3089\u3001\u9593\u9055\u3063\u3066\u3044\u308b\u304b\u3082\u3002<br \/>\n(\u7d4c\u7def\u3084\u30bb\u30ea\u30d5\u3082\u60f3\u50cf\u3067\u3059\u3002)<\/p>\n<p>\u53c2\u8003<br \/>\n<a href=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/0602\/11\/news011.html\">http:\/\/www.atmarkit.co.jp\/ait\/articles\/0602\/11\/news011.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C#\u3067\u52d5\u7684\u914d\u5217\u3092\u4f7f\u3044\u305f\u3044\u6642\u306b\u3001\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u308b\u3068\u3001ArrayList \u3068 List &lt;t&gt; \u304c\u3001\u9078\u629e\u80a2\u306b\u3042\u304c\u308b\u3002 \u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u3060\u3068\u3001 Hashtable \u3068 Dictionary&lt;TKey, TVal&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=141\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[64,25],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-csharp","tag-25"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":6,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":749,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/749"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}