{"id":4722,"date":"2022-01-19T04:22:35","date_gmt":"2022-01-18T19:22:35","guid":{"rendered":"https:\/\/okamurax.com\/?p=4722"},"modified":"2022-01-19T04:22:35","modified_gmt":"2022-01-18T19:22:35","slug":"c-auto-increment-%e6%ad%af%e6%8a%9c%e5%88%a9%e7%94%a8","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=4722","title":{"rendered":"C# Auto Increment \u6b6f\u629c\u5229\u7528"},"content":{"rendered":"<pre class=\"lang:c# decode:true \">  for (var r = 0; r &lt; dataGridView1.Rows.Count; r++)\r\n  {\r\n      int currentBranch = 0;\r\n      int.TryParse(dataGridView5.Rows[r].Cells[\"branch\"].Value.ToString(), out currentBranch);\r\n      branchList.Add(currentBranch);\r\n  }\r\n\r\n  \/\/ 1-100\u304b\u3089\u73fe\u5728\u306e\u30ea\u30b9\u30c8\u306e\u5024\u3092\u524a\u9664\u3057\u3066\u3001\u6b8b\u3063\u305f\u5024\u306e\u6700\u5c0f\u5024\r\n  int min = Enumerable.Range(1, 100).Except(branchList).Min&lt;int&gt;();<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>for (var r = 0; r &lt; dataGridView1.Rows.Count; r++) { int currentBranch = 0; int.TryParse(dataGridView5.Rows &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=4722\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# Auto Increment \u6b6f\u629c\u5229\u7528&#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-4722","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\/4722","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=4722"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/4722\/revisions"}],"predecessor-version":[{"id":4723,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/4722\/revisions\/4723"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}