{"id":365,"date":"2014-08-18T17:21:54","date_gmt":"2014-08-18T08:21:54","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=365"},"modified":"2014-08-18T17:21:54","modified_gmt":"2014-08-18T08:21:54","slug":"net-%e5%90%8d%e5%89%8d%e4%bb%98%e3%81%8d%e5%bc%95%e6%95%b0%e3%81%ae%e3%81%99%e3%81%99%e3%82%81","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=365","title":{"rendered":"[.NET] \u540d\u524d\u4ed8\u304d\u5f15\u6570\u306e\u3059\u3059\u3081"},"content":{"rendered":"<p>C#\u306e4.0\u304b\u3089\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u5f15\u6570\u3068\u3044\u3046\u3082\u306e\u3068\u540d\u524d\u4ed8\u304d\u5f15\u6570\u3068\u3044\u3046\u3044\u3046\u3082\u306e\u304c\u4f7f\u3048\u308b\u3002<br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u5f15\u6570\u3068\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u30e1\u30bd\u30c3\u30c9\u306b\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u305f\u3082\u306e\u306f\u3001\u7701\u7565\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"lang:c# decode:true\">void order(string menu, string size =\"\u4e26\u76db\")\r\n{\r\n Console.Write(menu + size);\r\n}<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308c\u3070\u3001<\/p>\n<p><span class=\"lang:c# decode:true crayon-inline\">order(&#8220;\u30e9\u30fc\u30e1\u30f3&#8221;);<\/span><br \/>\n\u3068\u5f15\u6570\u306a\u3057\u3067\u66f8\u3051\u3070\u3001\u4e26\u76db \u304c\u6ce8\u6587\u3055\u308c\u3001<br \/>\n<span class=\"lang:c# decode:true crayon-inline\">order(&#8220;\u30e9\u30fc\u30e1\u30f3&#8221;,&#8221;\u5927\u76db&#8221;);<\/span><br \/>\n\u3068\u66f8\u3051\u3070\u3001\u5927\u76db \u304c\u6ce8\u6587\u3055\u308c\u308b\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u540d\u524d\u4ed8\u304d\u5f15\u6570\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u3001\u4e0a\u8a18\u306e\u725b\u4e3c\u5927\u76db\u3092<br \/>\n<span class=\"lang:c# decode:true crayon-inline\">order(size:&#8221;\u5927\u76db&#8221;,menu:&#8221;\u30e9\u30fc\u30e1\u30f3&#8221;);<\/span><br \/>\n\u3068\u304b\u3051\u3001\u5f15\u6570\u306e\u9806\u756a\u306b\u95a2\u308f\u3089\u305a\u5f15\u6570\u540d\u3067\u5024\u3092\u6e21\u305b\u308b\u3002<br \/>\n\u6587\u5b57\u901a\u308a\u3001\u300c\u540d\u524d\u306e\u4ed8\u3044\u305f\u5f15\u6570\u300d\u3067\u3042\u308b\u3002<\/p>\n<p>\u3053\u308c\u3060\u3051\u898b\u308b\u3068\u3042\u307e\u308a\u30e1\u30ea\u30c3\u30c8\u304c\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u304c\u3001\u91cd\u8981\u306a\u306e\u306f\u308f\u3056\u308f\u3056\u5909\u306a\u3092\u4f8b\u306b\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u30c8\u30c3\u30d4\u30f3\u30b0\u304c\u591a\u304f\u3042\u308b\u5834\u5408\u306b\u4f7f\u3048\u308b\u3002<\/p>\n<pre class=\"lang:c# decode:true\">void order(string menu, string size =\"\u4e26\u76db\", bool char_siu = false, bool egg = false, bool laver = false)\r\n{\r\n var orderContent = menu + size;\r\n if(char_siu) orderContent += \"\u30c1\u30e3\u30fc\u30b7\u30e5\u30fc\";\r\n if(egg) orderContent += \"\u5375\";\r\n if(laver) orderContent += \"\u6d77\u82d4\";\r\n Console.Write(orderContent);\r\n}<\/pre>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u30c8\u30c3\u30d4\u30f3\u30b0\u304c\u3042\u308b\u5834\u5408\u306b\u3001\u30c1\u30e3\u30fc\u30b7\u30e5\u30fc\u3084\u6d77\u82d4\u306f\u3044\u3089\u306a\u3044\u304c\u3001\u5375\u306f\u3064\u3051\u305f\u3044\u5834\u5408\u306b\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3002<br \/>\n<span class=\"lang:c# decode:true crayon-inline\">order(&#8220;\u30e9\u30fc\u30e1\u30f3&#8221;,&#8221;\u5927\u76db&#8221;,egg=true);<\/span><br \/>\n\u4eca\u307e\u3067\u3001\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3067\u30b4\u30ea\u30b4\u30ea\u66f8\u3044\u3066\u3044\u305f\u306e\u304c\u4e00\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u6e08\u3080\u3002<\/p>\n<p>\u9806\u4e0d\u540c\u3067\u5f15\u6570\u304c\u591a\u304f\u5fc5\u8981\u306a\u5834\u5408\u306a\u3069\u306b\u601d\u3044\u51fa\u305b\u3070\u3001\u4fbf\u5229\u304b\u3082\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u885d\u6483\u7684\u4e8b\u5b9f\u304c\u3042\u3063\u305f\u3002<br \/>\nVisualBasic.NET\u3067\u306f\u6700\u521d\u304b\u3089\u4f7f\u3048\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C#\u306e4.0\u304b\u3089\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u5f15\u6570\u3068\u3044\u3046\u3082\u306e\u3068\u540d\u524d\u4ed8\u304d\u5f15\u6570\u3068\u3044\u3046\u3044\u3046\u3082\u306e\u304c\u4f7f\u3048\u308b\u3002 \u30aa\u30d7\u30b7\u30e7\u30f3\u5f15\u6570\u3068\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u30e1\u30bd\u30c3\u30c9\u306b\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u305f\u3082\u306e\u306f\u3001\u7701\u7565\u3067\u304d\u308b\u3002 void order(s&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=365\" 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":[66,20,43],"tags":[],"class_list":["post-365","post","type-post","status-publish","format-standard","hentry","category-dot-net","category-csharp","category-visualbasic-net"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/365","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=365"}],"version-history":[{"count":1,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/365\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/365\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}