{"id":147,"date":"2016-09-29T19:12:39","date_gmt":"2016-09-29T10:12:39","guid":{"rendered":"http:\/\/okamurax.com\/?p=147"},"modified":"2016-09-29T19:12:39","modified_gmt":"2016-09-29T10:12:39","slug":"c-list%e3%82%92%e3%82%bd%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=147","title":{"rendered":"C# List\u3092\u30bd\u30fc\u30c8"},"content":{"rendered":"\n<pre class=\"lang:c# decode:true \" >using System;\r\nusing System.Collections.Generic;\r\nusing System.ComponentModel;\r\nusing System.Data;\r\nusing System.Drawing;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing System.Windows.Forms;\r\n\r\nnamespace LIST\u3092\u30bd\u30fc\u30c8\r\n{\r\n    public partial class Form1 : Form\r\n    {\r\n        public Form1()\r\n        {\r\n            InitializeComponent();\r\n\r\n            \/\/\u591a\u6b21\u5143\u914d\u5217\u306f\u305d\u306e\u307e\u307e\u3067\u306f\u30bd\u30fc\u30c8\u3067\u304d\u306a\u3044\u3002\r\n            \/\/List&lt;&gt;\u3067\u3082\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306fSort()\u304c\u3042\u308b\u304c\u3001\u3061\u3087\u3063\u3068\u96e3\u3057\u3044\u3002\r\n\r\n            \/\/list\u306b\u6e21\u3059\u578b = string[] \u306e\u30ea\u30b9\u30c8\u3068\u3044\u3046\u610f\u5473\r\n\r\n            List&lt;string[]&gt; ls = new List&lt;string[]&gt;();\r\n\r\n            ls.Add(new string[] { \"1\", \"ichiro\" } );\r\n            ls.Add(new string[] { \"3\", \"saburo\" } );\r\n            ls.Add(new string[] { \"2\", \"jiro\" } );\r\n\r\n            foreach(string[] l in ls)\r\n            {\r\n                foreach (string s in l)\r\n                {\r\n                    MessageBox.Show(s.ToString());\r\n                    \/\/1\r\n                    \/\/ichiro\r\n                    \/\/3\r\n                    \/\/saburo\r\n                    \/\/2\r\n                    \/\/jiro\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.D &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=147\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# List\u3092\u30bd\u30fc\u30c8&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-1","tag-c-net"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}