{"id":277,"date":"2014-06-20T19:14:58","date_gmt":"2014-06-20T10:14:58","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=277"},"modified":"2014-06-20T19:17:05","modified_gmt":"2014-06-20T10:17:05","slug":"cvb%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e8%ab%96%e7%90%86%e6%bc%94%e7%ae%97%e7%9f%ad%e8%b7%af%e3%82%92%e4%bd%bf%e3%81%8a%e3%81%86","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=277","title":{"rendered":"[C#,VB]\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8\u8ad6\u7406\u6f14\u7b97(\u77ed\u7d61)\u3092\u4f7f\u304a\u3046"},"content":{"rendered":"<p>C#\u3067\u8ad6\u7406\u548c\u3068\u8ad6\u7406\u7a4d\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304f\u3002<\/p>\n<pre class=\"lang:c# decode:true\">a | b\r\na &amp; b<\/pre>\n<p>VisualBasic.NET (VB.NET) \u3067\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304f\u3002<\/p>\n<pre class=\"lang:vbnet decode:true\">a Or b\r\na And b<\/pre>\n<p>\u3057\u304b\u3057\u3001true\u3068false\u3092\u77e5\u308a\u305f\u3044\u3060\u3051\u306e\u5834\u5408\u306f\u3001\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8\u7248\u3067\u3001\u66f8\u304f\u3079\u3057\u3002<\/p>\n<p>C#<\/p>\n<pre class=\"lang:c# decode:true\">a || b\r\na &amp;&amp; b<\/pre>\n<p>VB.NET<\/p>\n<pre class=\"lang:vbnet decode:true\">a OrElse b\r\na AndAlso b<\/pre>\n<p>&nbsp;<\/p>\n<p>\u306a\u305c\u304b\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001| \u3068 &amp; \u306f\u3001\u8ad6\u7406\u7a4d\u3001\u8ad6\u7406\u548c\u3092\u6c42\u3081\u308b\u8a08\u7b97\u5f0f\u3060\u304c\u3001\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50\u3067\u3082\u3042\u308b\u3002<br \/>\n\u3064\u307e\u308a\u3001true \u3068 false \u3092\u5358\u306b\u6bd4\u8f03\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u30012\u9032\u6570\u3067\u66f8\u304f\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b<\/p>\n<pre class=\"lang:default decode:true\">0100 &amp; 0101 = 0100\r\n0100 | 0101 = 0101<\/pre>\n<p>\u3068\u53f3\u8fba\u3068\u5de6\u8fba\u3067\u8a08\u7b97\u3092\u884c\u3063\u3066\u3044\u308b\u3002<br \/>\n\u306a\u306e\u3067\u3001\u53f3\u8fba\u3068\u5de6\u8fba\u306e\u3069\u3061\u3089\u3082\u5fc5\u8981\u3067\u3042\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u7528\u3059\u308b\u969b\u306f\u3001\u3053\u308c\u3089\u306e\u6f14\u7b97\u5b50\u306ftrue\u304bfalse\u3092\u6c42\u3081\u308b\u969b\u306b\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<pre class=\"lang:c# decode:true\">if(a | b){ \r\n  Console.WriteLine(\"Hellow\");  \r\n}<\/pre>\n<p>\u4e0a\u8a18\u306e\u5834\u5408\u3001a\u306e\u5024\u304ctrue\u3067\u3042\u308c\u3070\u3001b\u306e\u5024\u304ctrue\u3067\u3042\u308cfalse\u3067\u3042\u308c\u95a2\u4fc2\u306a\u3044\u3002<\/p>\n<p>\u3053\u306e\u7a0b\u5ea6\u3067\u3042\u308c\u3070\u3001\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u304c\u3001\u6761\u4ef6\u306b\u95a2\u6570\u7b49\u3092\u7528\u3044\u3066\u3001\u305d\u306e\u95a2\u6570\u304c\u91cd\u3044\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u3060\u3068\u3001\u975e\u52b9\u7387\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"lang:c# decode:true\">        static void Main(string[] args)\r\n        {\r\n            bool flag = true;\r\n\r\n            if (flag | waitHoge())\r\n            {\r\n                Console.WriteLine(\"hellow\");\r\n            }\r\n        }\r\n\r\n        static bool waitHoge()\r\n        {\r\n            System.Threading.Thread.Sleep(2000);\r\n            return false;\r\n        }<\/pre>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001flag\u304ctrue\u3067\u3001\u5224\u5b9a\u306e\u5fc5\u8981\u3082\u306a\u3044\u5834\u5408\u3067\u3082\u3001waitHoge\u3067\u5fc5\u305a2\u79d2\u5f85\u305f\u3055\u308c\u308b\u3002<\/p>\n<p>\u307e\u305f\u3001null\u3067\u306a\u3044\u3068\u304d\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u7d9a\u3051\u3066\u6761\u4ef6\u5185\u3067\u4f7f\u3046\u3088\u3046\u306a\u4e0b\u8a18\u306e\u5834\u5408\u3001\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8\u3067\u306a\u3044\u5834\u5408\u306f\u30cc\u30eb\u30dd\u3067\u843d\u3061\u307e\u3059\u3002<\/p>\n<pre class=\"lang:c# decode:true\">        static void Main(string[] args)\r\n        {\r\n            String msg = null;\r\n\r\n            if (msg != null &amp; msg.Length &gt; 5)\r\n            {\r\n                Console.WriteLine(\"5\u6587\u5b57\u4ee5\u4e0a\u3067\u3059\");\r\n            }\r\n        }\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u8a73\u3057\u3044\u3053\u3068\u306f\u672c\u5bb6\u3067\u3002<\/p>\n<p><a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/sbf85k1c.aspx\">&amp;\u6f14\u7b97\u5b50\u00a0 http:\/\/msdn.microsoft.com\/ja-jp\/library\/sbf85k1c.aspx<\/a><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/2a723cdk.aspx\">&amp;&amp;\u6f14\u7b97\u5b50\u00a0 http:\/\/msdn.microsoft.com\/ja-jp\/library\/2a723cdk.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C#\u3067\u8ad6\u7406\u548c\u3068\u8ad6\u7406\u7a4d\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304f\u3002 a | b a &amp; b VisualBasic.NET (VB.NET) \u3067\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304f\u3002 a Or b a And b \u3057\u304b\u3057\u3001true\u3068false\u3092\u77e5\u308a\u305f\u3044&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=277\" 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],"tags":[],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-dot-net","category-csharp"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/277","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=277"}],"version-history":[{"count":5,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions\/282"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}