{"id":190,"date":"2019-04-29T22:56:18","date_gmt":"2019-04-29T13:56:18","guid":{"rendered":"http:\/\/192.168.219.207\/?p=190"},"modified":"2020-03-17T12:22:28","modified_gmt":"2020-03-17T03:22:28","slug":"c-static-class-extend","status":"publish","type":"post","link":"https:\/\/tindevil.com\/?p=190","title":{"rendered":"[C#] Static Class &#038; Extenstion"},"content":{"rendered":"\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"[SIMPLE C#] Static Class &amp; Extenstion\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/uJ_7q9MFqAo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<pre class=\"wp-block-verse\">\uc774 \ud504\ub85c\uc81d\ud2b8\ub294 Gitlab \uc5d0\uc11c \uc5c5\ub370\uc774\ud2b8\ub429\ub2c8\ub2e4. <br> <a rel=\"noreferrer noopener\" href=\"https:\/\/gitlab.com\/open-class\/StaticClass.git\" target=\"_blank\">https:\/\/gitlab.com\/open-class\/StaticClass.git<\/a> <br>\ucd08\uccad\uc740 tindevil@nate.com \uc73c\ub85c \ubb38\uc758\uc8fc\uc138\uc694<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><s>CTextEnctypt.cs<\/s><\/li><li><s>GdiUtil.cs<\/s><\/li><li><s>MatExtension.cs<\/s><\/li><li><s>MessageWindow.cs<\/s><\/li><li><strong>MethodExtensions.cs<\/strong><\/li><li><strong>Util.cs<\/strong><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\ud655\uc7a5\uacfc, \uc720\ud2f8\ud30c\uc77c\uc5d0 \ub300\ud55c \uc124\uba85\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<br>\ub098\uba38\uc9c0 \ud30c\uc77c\uc740 \ub2e4\uc74c \uae30\ud68c\uc5d0 \uc124\uba85 \ub4dc\ub9ac\uaca0\uc2b5\ub2c8\ub2e4.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">MethodExtenstions.cs<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">\ud655\uc7a5\uba54\uc18c\ub4dc \uae30\ub2a5 : \uc790\uc8fc \uc4f0\ub294 \uae30\ub2a5\uc744 \ucd94\uac00\ud574\ub450\uc5c8\uc2b5\ub2c8\ub2e4. \n\uc608\ub97c \ub4e4\uba74  string.IsNullOrEmpty(\ubb38\uc790) \ub294 \ud568\uc218 \ud615\ud0dc\ub85c \ub3d9\uc791\ud558\uc9c0\ub9cc \ubaa8\ub4e0 \ubb38\uc790\uc5f4\uc5d0 \ub300\ud574 isEmpty()\ub85c \ud655\uc7a5\uc2dc\ucf1c \ub450\uc5c8\uc2b5\ub2c8\ub2e4. \n\uc989 \ubb38\uc790\uc5f4.isEmpty() \ub97c \uc2e4\ud589\ud558\uba74 \ub3d9\uc77c\ud55c \uacb0\uacfc\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>public static Boolean isEmpty(this string input)\n{\n      return string.IsNullOrEmpty(input);\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-verse\">\ud655\uc7a5\uba54\uc3d8\ub4dc MSDN \uc124\uba85\ubcf4\uae30<br> <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/ko-kr\/dotnet\/csharp\/programming-guide\/classes-and-structs\/extension-methods\" target=\"_blank\">https:\/\/docs.microsoft.com\/ko-kr\/dotnet\/csharp\/programming-guide\/classes-and-structs\/extension-methods<\/a> <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Utils.cs<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">\ud655\uc7a5\uc740 \uc544\ub2c8\uc9c0\ub9cc \uc790\uc8fc \uc0ac\uc6a9\ud558\ub294 \ud568\uc218\ub97c \ubaa8\uc544 \ub450\uc5c8\uc2b5\ub2c8\ub2e4.\nRunProcess(\ud30c\uc77c\uba85) : \uc9c0\uc815\ud55c \ud30c\uc77c\uc744 \uc2e4\ud589\ud558\ub294 \uae30\ub2a5\nRunExplorer(\uacbd\ub85c) : \uc9c0\uc815\ud55c \uc704\uce58\ub97c \ud0d0\uc0c9\uae30\ub85c \uc5f4\uae30\nGetStrfromurl(\uacbd\ub85c) : \uc9c0\uc815\ub41c \uc6f9\uc0ac\uc774\ud2b8\uc758 \uac12\uc744 \uac00\uc838\uc624\uae30(\ubb38\uc790)\nMsgE : \uba54\uc138\uc9c0\ubc15\uc2a4(\uc624\ub958)\nMsgI : \uba54\uc138\uc9c0\ubc15\uc2a4(\uc815\ubcf4)\nMsgQ : \uba54\uc138\uc9c0\ubc15\uc2a4(\uc751\ub2f5:Yes or No)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\ub2e4\uc6b4\ub85c\ub4dc<\/h3>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2020\/02\/StaticClass-1.zip\">StaticClass-1<\/a><a href=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2020\/02\/StaticClass-1.zip\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\">API Document :  <a href=\"http:\/\/192.168.219.207\/Document\/api\/arUtil.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (\uc0c8\ud0ed\uc73c\ub85c \uc5f4\uae30)\">http:\/\/192.168.219.207\/Document\/api\/arUtil.html<\/a> <\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\ubcc4\ub3c4\uc758 \ud504\ub85c\uc81d\ud2b8 \ud30c\uc77c\uc774 \uc544\ub2c8\ubbc0\ub85c \uc0ac\uc6a9\ud558\ub824\ub294 \ud504\ub85c\uc81d\ud2b8\uc640 NameSpace\ub97c \ub9de\ucd98 \ud6c4 \uc0ac\uc6a9\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \uc0ac\uc6a9\ubc29\ubc95\uc740 \uc0c1\ub2e8\uc758 &#8220;\ub3d9\uc601\uc0c1&#8221;\uc744 \uc774\uc6a9\ud558\uc138\uc694.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\uc774 \ud504\ub85c\uc81d\ud2b8\ub294 Gitlab \uc5d0\uc11c \uc5c5\ub370\uc774\ud2b8\ub429\ub2c8\ub2e4. https:\/\/gitlab.com\/open-class\/StaticClass.git \ucd08\uccad\uc740 tindevil@nate.com \uc73c\ub85c \ubb38\uc758\uc8fc\uc138\uc694 CTextEnctypt.cs GdiUtil.cs MatExtension.cs MessageWindow.cs MethodExtensions.cs Util.cs \ud655\uc7a5\uacfc, \uc720\ud2f8\ud30c\uc77c\uc5d0 \ub300\ud55c \uc124\uba85\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.\ub098\uba38\uc9c0 \ud30c\uc77c\uc740 \ub2e4\uc74c \uae30\ud68c\uc5d0 \uc124\uba85 \ub4dc\ub9ac\uaca0\uc2b5\ub2c8\ub2e4. MethodExtenstions.cs \ud655\uc7a5\uba54\uc18c\ub4dc \uae30\ub2a5 : \uc790\uc8fc \uc4f0\ub294 \uae30\ub2a5\uc744 \ucd94\uac00\ud574\ub450\uc5c8\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uba74 string.IsNullOrEmpty(\ubb38\uc790) \ub294 \ud568\uc218 \ud615\ud0dc\ub85c \ub3d9\uc791\ud558\uc9c0\ub9cc \ubaa8\ub4e0 \ubb38\uc790\uc5f4\uc5d0 \ub300\ud574 isEmpty()\ub85c \ud655\uc7a5\uc2dc\ucf1c \ub450\uc5c8\uc2b5\ub2c8\ub2e4. \uc989 \ubb38\uc790\uc5f4.isEmpty() \ub97c \uc2e4\ud589\ud558\uba74 \ub3d9\uc77c\ud55c \uacb0\uacfc\ub97c \ud655\uc778\ud560 \uc218 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[11],"tags":[13,15,14,17],"class_list":["post-190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-open-source","tag-c","tag-simp","tag-simple-c","tag-17"],"_links":{"self":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=190"}],"version-history":[{"count":11,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions\/479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/media\/285"}],"wp:attachment":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}