{"id":849,"date":"2024-07-05T10:08:11","date_gmt":"2024-07-05T01:08:11","guid":{"rendered":"https:\/\/mvc.auctionpro.co.kr\/?p=849"},"modified":"2024-07-05T10:10:58","modified_gmt":"2024-07-05T01:10:58","slug":"string-airports-liststing-airports","status":"publish","type":"post","link":"https:\/\/mvc.auctionpro.co.kr\/?p=849","title":{"rendered":"string[] airports  List&lt;sting><string> airports<\/string>"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\ubaa9\ub85d\uc744 \ubc30\uc5f4\uc774\ub098 \ub9ac\uc2a4\ud2b8\ub85c \uc815\uc758 \ubc0f \uac80\uc0c9<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" title=\"\ubc29\ubc951\" >using System;\n\nnamespace AirportCheck\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            \/\/ \uacf5\ud56d \ubaa9\ub85d \ubc30\uc5f4 \uc815\uc758\n            string[] airports = { \"ICN\", \"GMP\", \"PUS\", \"CJU\", \"TAE\", \"CJJ\", \"MWX\", \"YNY\" };\n\n            \/\/ \uccb4\ud06c\ud560 \uacf5\ud56d \ucf54\ub4dc\n            string airportToCheck = \"GMP\";\n\n            \/\/ \uacf5\ud56d \ucf54\ub4dc\uac00 \ubaa9\ub85d\uc5d0 \ud3ec\ud568\ub418\ub294\uc9c0 \ud655\uc778\n            bool isIncluded = Array.Exists(airports, element =&gt; element == airportToCheck);\n\n            \/\/ \uacb0\uacfc \ucd9c\ub825\n            if (isIncluded)\n            {\n                Console.WriteLine($\"{airportToCheck} \uacf5\ud56d\uc774 \ubaa9\ub85d\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.\");\n            }\n            else\n            {\n                Console.WriteLine($\"{airportToCheck} \uacf5\ud56d\uc774 \ubaa9\ub85d\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\");\n            }\n        }\n    }\n}\n<\/pre><\/div>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" title=\"\ubc29\ubc952\" >using System;\nusing System.Collections.Generic;\n\nnamespace AirportCheck\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            \/\/ \uacf5\ud56d \ubaa9\ub85d \ub9ac\uc2a4\ud2b8 \uc815\uc758\n            List&lt;string&gt; airports = new List&lt;string&gt; { \"ICN\", \"GMP\", \"PUS\", \"CJU\", \"TAE\", \"CJJ\", \"MWX\", \"YNY\" };\n\n            \/\/ \uccb4\ud06c\ud560 \uacf5\ud56d \ucf54\ub4dc\n            string airportToCheck = \"GMP\";\n\n            \/\/ \uacf5\ud56d \ucf54\ub4dc\uac00 \ubaa9\ub85d\uc5d0 \ud3ec\ud568\ub418\ub294\uc9c0 \ud655\uc778\n            bool isIncluded = airports.Contains(airportToCheck);\n\n            \/\/ \uacb0\uacfc \ucd9c\ub825\n            if (isIncluded)\n            {\n                Console.WriteLine($\"{airportToCheck} \uacf5\ud56d\uc774 \ubaa9\ub85d\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.\");\n            }\n            else\n            {\n                Console.WriteLine($\"{airportToCheck} \uacf5\ud56d\uc774 \ubaa9\ub85d\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\");\n            }\n        }\n    }\n}\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ubaa9\ub85d\uc744 \ubc30\uc5f4\uc774\ub098 \ub9ac\uc2a4\ud2b8\ub85c \uc815\uc758 \ubc0f \uac80\uc0c9<\/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":[],"class_list":["post-849","post","type-post","status-publish","format-standard","hentry","category-20"],"_links":{"self":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=849"}],"version-history":[{"count":2,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}