{"id":42718,"date":"2024-11-13T20:48:07","date_gmt":"2024-11-13T20:48:07","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=42718"},"modified":"2024-11-26T06:34:39","modified_gmt":"2024-11-26T06:34:39","slug":"5-linq%ec%99%80-%ed%95%a8%ec%88%98%ed%98%95-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%98%eb%b0%8d-%ec%9a%94%ec%86%8c-%ec%a7%80%ec%97%b0-%ed%8f%89%ea%b0%80%ec%99%80-ienumerable%ec%9d%98-%ec%82%ac%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/42718\/","title":{"rendered":"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608"},"content":{"rendered":"<p>C#\uc740 \uac1d\uccb4 \uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub85c \uc2dc\uc791\ud588\uc9c0\ub9cc, \ucd5c\uadfc \uba87 \ub144 \ub3d9\uc548 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c\ub3c4 \uc9c0\uc6d0\ud558\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \uac1c\ubc1c\uc790\ub4e4\uc740 \ub354\uc6b1 \uc720\uc5f0\ud558\uace0 \uac15\ub825\ud55c \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. LINQ(Language Integrated Query)\ub294 \uc774\ub7ec\ud55c \ubcc0\ud654\uc758 \uc0c1\uc9d5\uc801\uc778 \uc694\uc18c \uc911 \ud558\ub098\ub85c, \ub370\uc774\ud130 \uc18c\uc2a4\uc5d0 \ub300\ud55c \ucffc\ub9ac\ub97c \uc9c1\uad00\uc801\uc73c\ub85c \uc791\uc131\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 LINQ\uc758 \uae30\ubcf8 \uac1c\ub150\uc5d0\uc11c\ubd80\ud130 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00, IEnumerable\uc758 \uc0ac\uc6a9 \uc0ac\ub840\uae4c\uc9c0 \uc0c1\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. LINQ\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>LINQ\ub294 &#8216;Language Integrated Query&#8217;\uc758 \uc57d\uc790\ub85c, C# \uc5b8\uc5b4\uc5d0 \ub0b4\uc7a5\ub41c \ucffc\ub9ac \uc5b8\uc5b4\uc785\ub2c8\ub2e4. LINQ\ub97c \uc0ac\uc6a9\ud558\uba74 \uac1d\uccb4, XML, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ub4f1\uc744 \ucffc\ub9ac\ud560 \ub54c \ud1b5\uc77c\ub41c \ubb38\ubc95\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ub370\uc774\ud130 \uc870\uc791\uc774 \ubcf4\ub2e4 \uc9c1\uad00\uc801\uc774\uace0 \ud6a8\uc728\uc801\uc73c\ub85c \uc774\ub8e8\uc5b4\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4. LINQ\ub294 \ub450 \uac00\uc9c0 \ubc29\uc2dd\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4: \ucffc\ub9ac \ud45c\ud604\uc2dd\uacfc \uba54\uc11c\ub4dc \uad6c\ubb38.<\/p>\n<h3>1.1. \ucffc\ub9ac \ud45c\ud604\uc2dd<\/h3>\n<pre><code>\nvar result = from student in students\n             where student.Age &gt; 20\n             select student;\n<\/code><\/pre>\n<h3>1.2. \uba54\uc11c\ub4dc \uad6c\ubb38<\/h3>\n<pre><code>\nvar result = students.Where(s =&gt; s.Age &gt; 20);\n<\/code><\/pre>\n<p>\uc704\uc758 \ub450 \uc608\uc5d0\uc11c \uc54c \uc218 \uc788\ub4ef\uc774, LINQ\ub294 \ub2e4\uc591\ud55c \ub370\uc774\ud130 \uc18c\uc2a4\uc5d0 \ub300\ud574 \uc77c\uad00\ub41c \ucffc\ub9ac \uc791\uc131\uc744 \uac00\ub2a5\ud558\uac8c \ud574\uc90d\ub2c8\ub2e4.<\/p>\n<h2>2. \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c<\/h2>\n<p>\ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 \ud504\ub85c\uadf8\ub798\ubc0d \ud328\ub7ec\ub2e4\uc784 \uc911 \ud558\ub098\ub85c, \uacc4\uc0b0\uc758 \uae30\ubcf8 \ub2e8\uc704\ub97c \uc218\ud559\uc801 \ud568\uc218\ub85c \uac04\uc8fc\ud569\ub2c8\ub2e4. C#\uc5d0\uc11c\ub294 Lambda \ud45c\ud604\uc2dd\uc744 \ud1b5\ud574 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. Lambda \ud45c\ud604\uc2dd\uc740 \uac04\uacb0\ud558\uace0 \uc77d\uae30 \uc26c\uc6b4 \ud615\ud0dc\ub85c, \uc775\uba85 \uba54\uc11c\ub4dc\ub97c \uc815\uc758\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n<h3>2.1. Lambda \ud45c\ud604\uc2dd \uc608\uc81c<\/h3>\n<pre><code>\nFunc<int, int=\"\"> square = x =&gt; x * x;\nint result = square(5); \/\/ result\ub294 25\n<\/int,><\/code><\/pre>\n<p>\uc704\uc758 \uc608\uc5d0\uc11c \ubcfc \uc218 \uc788\ub4ef\uc774, Lambda \ud45c\ud604\uc2dd\uc740 \uac04\ud3b8\ud558\uac8c \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc2a4\ud0c0\uc77c\ub85c \ucf54\ub4dc\ub97c \uc791\uc131\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<\/p>\n<h2>3. \uc9c0\uc5f0 \ud3c9\uac00(Lazy Evaluation)<\/h2>\n<p>\uc9c0\uc5f0 \ud3c9\uac00\ub294 \ud45c\ud604\uc2dd\uc758 \ud3c9\uac00\ub97c \uac00\ub2a5\ud55c \ud55c \ub9c8\uc9c0\ub9c9 \uc21c\uac04\uae4c\uc9c0 \ubbf8\ub8e8\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. C#\uc758 LINQ\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc9c0\uc5f0 \ud3c9\uac00 \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc989, \ucffc\ub9ac\uc758 \uc2e4\ud589\uc740 \uc2e4\uc81c\ub85c \ub370\uc774\ud130\ub97c \uc694\uccad\ud560 \ub54c\uae4c\uc9c0 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\ub294 \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud558\uace0 \ubd88\ud544\uc694\ud55c \uc5f0\uc0b0\uc744 \ud53c\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.<\/p>\n<h3>3.1. \uc9c0\uc5f0 \ud3c9\uac00\uc758 \uc608<\/h3>\n<pre><code>\nIEnumerable<int> numbers = Enumerable.Range(1, 100);\nIEnumerable<int> evenNumbers = numbers.Where(n =&gt; n % 2 == 0);\n\n\/\/ \uc2e4\uc81c\ub85c \ub370\uc774\ud130\ub97c \uc694\uad6c\ud560 \ub54c\uae4c\uc9c0 \ud3c9\uac00\ub418\uc9c0 \uc54a\uc74c\nforeach (var number in evenNumbers)\n{\n    Console.WriteLine(number);\n}\n<\/int><\/int><\/code><\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c, <code>evenNumbers<\/code>\ub294 <code>numbers<\/code>\uc758 \uc9dd\uc218\uac12\uc744 \ud544\ud130\ub9c1\ud558\ub294 \ucffc\ub9ac\ub97c \uc815\uc758\ud558\uc9c0\ub9cc, \uc774 \ucffc\ub9ac\ub294 \uc2e4\uc81c\ub85c \ub370\uc774\ud130\ub97c \uc694\uad6c\ud560 \ub54c\uae4c\uc9c0 \uc2e4\ud589\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>4. IEnumerable \uc778\ud130\ud398\uc774\uc2a4\uc758 \uc0ac\uc6a9<\/h2>\n<p>IEnumerable \uc778\ud130\ud398\uc774\uc2a4\ub294 \uceec\ub809\uc158\uc744 \ubc18\ubcf5\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \uae30\ubcf8 \uc778\ud130\ud398\uc774\uc2a4\uc785\ub2c8\ub2e4. LINQ\ub294 IEnumerable\uc744 \ubc18\ud658\ud568\uc73c\ub85c\uc368 \uc9c0\uc5f0 \ud3c9\uac00\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uac1c\ub150\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. IEnumerable\uc744 \ud1b5\ud574 \uc21c\ucc28\uc801\uc73c\ub85c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud558\uba70, \ud544\uc694\ud55c \uacbd\uc6b0\uc5d0\ub9cc \ub370\uc774\ud130\ub97c \ub85c\ub4dc\ud558\uc5ec \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud569\ub2c8\ub2e4.<\/p>\n<h3>4.1. IEnumerable\uc758 \uc0ac\uc6a9 \uc608<\/h3>\n<pre><code>\npublic static IEnumerable<int> GetEvenNumbers(IEnumerable<int> numbers)\n{\n    foreach (var number in numbers)\n    {\n        if (number % 2 == 0)\n        {\n            yield return number; \/\/ \uc9c0\uc5f0 \ubc18\ud658\n        }\n    }\n}\n\n\/\/ \ud638\ucd9c \uc608\uc81c\nIEnumerable<int> evenNumbers = GetEvenNumbers(Enumerable.Range(1, 100));\nforeach (var number in evenNumbers)\n{\n    Console.WriteLine(number);\n}\n<\/int><\/int><\/int><\/code><\/pre>\n<p>\uc704 \uc608\uc81c\uc5d0\uc11c <code>yield return<\/code> \ud0a4\uc6cc\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc218\ub97c \ud558\ub098\uc529 \ubc18\ud658\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ud638\ucd9c \uc2dc\uae4c\uc9c0 \uac12\uc744 \ubbf8\ub8e8\uc5b4 \ub193\uc558\ub2e4\uac00 \ud544\uc694\ud560 \ub54c\ub9cc \ubc18\ud658\ud558\ub294 \uc9c0\uc5f0 \ud3c9\uac00\uc758 \ud55c \ud615\ud0dc\uc785\ub2c8\ub2e4.<\/p>\n<h2>5. LINQ\uc640 IEnumerable\uc758 \uacb0\ud569<\/h2>\n<p>LINQ\ub294 IEnumerable\uacfc \ubc00\uc811\ud558\uac8c \uc5f0\uad00\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. LINQ\ub97c \uc0ac\uc6a9\ud558\uc5ec IEnumerable\uc744 \ucffc\ub9ac\ud558\uba74 \uc9c0\uc5f0 \ud3c9\uac00\uac00 \ubc1c\uc0dd\ud558\uace0, \ud544\uc694\ud55c \ub370\uc774\ud130\ub9cc\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \uc791\uc5c5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>5.1. LINQ \ucffc\ub9ac \uc608\uc81c<\/h3>\n<pre><code>\nIEnumerable<int> numbers = Enumerable.Range(1, 50);\nvar squaredEvenNumbers = numbers.Where(n =&gt; n % 2 == 0).Select(n =&gt; n * n);\n\n\/\/ \uc9c0\uc5f0 \ud3c9\uac00\ub97c \ud655\uc778\nforeach (var number in squaredEvenNumbers)\n{\n    Console.WriteLine(number);\n}\n<\/int><\/code><\/pre>\n<p>\uc704\uc5d0\uc11c\uc758 LINQ \ucffc\ub9ac\ub294 \uc9dd\uc218\uc778 \uc218\ub97c \uc81c\uacf1\ud558\uc5ec \uadf8 \uacb0\uacfc\ub97c \ub098\uc911\uc5d0 \ucd9c\ub825\ud558\uac8c \ub429\ub2c8\ub2e4. LINQ\ub97c \uc0ac\uc6a9\ud558\uba74 \ucf54\ub4dc\uac00 \ub354\uc6b1 \ub354 \uc120\uc5b8\uc801\uc774\uba70 \uac04\uacb0\ud574\uc9d1\ub2c8\ub2e4.<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00 \ubc0f IEnumerable\uc758 \uc0ac\uc6a9\uc740 C# \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ub354\uc6b1 \ud655\uc7a5 \uac00\ub2a5\ud558\uace0 \uc720\uc9c0 \ubcf4\uc218\uac00 \uc6a9\uc774\ud558\uac8c \ub9cc\ub4ed\ub2c8\ub2e4. \uc774\ub4e4 \ud2b9\uc9d5\uc744 \uc801\uc808\ud788 \ud65c\uc6a9\ud558\uba74 \ud6a8\uc728\uc801\uc778 \ub370\uc774\ud130 \ucc98\ub9ac \ubc0f \uac15\ub825\ud55c \ucf54\ub4dc \uc791\uc131\uc744 \uac00\ub2a5\ud558\uac8c \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. C#\uc744 \uc0ac\uc6a9\ud558\ub294 \uac1c\ubc1c\uc790\ub77c\uba74 \uc774\ub7ec\ud55c \uac1c\ub150\ub4e4\uc744 \uae4a\uc774 \uc788\uac8c \uc774\ud574\ud558\uace0 \ud65c\uc6a9\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.<\/p>\n<h2>\ucc38\uace0 \uc790\ub8cc<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/csharp\/programming-guide\/concepts\/linq\/\">Microsoft Docs: LINQ<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/csharp\/programming-guide\/concepts\/linq\/using-linq\">Using LINQ<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/csharp\/programming-guide\/statements-expressions-operators\/lambda-expressions\">Lambda Expressions<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>C#\uc740 \uac1d\uccb4 \uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub85c \uc2dc\uc791\ud588\uc9c0\ub9cc, \ucd5c\uadfc \uba87 \ub144 \ub3d9\uc548 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c\ub3c4 \uc9c0\uc6d0\ud558\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \uac1c\ubc1c\uc790\ub4e4\uc740 \ub354\uc6b1 \uc720\uc5f0\ud558\uace0 \uac15\ub825\ud55c \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. LINQ(Language Integrated Query)\ub294 \uc774\ub7ec\ud55c \ubcc0\ud654\uc758 \uc0c1\uc9d5\uc801\uc778 \uc694\uc18c \uc911 \ud558\ub098\ub85c, \ub370\uc774\ud130 \uc18c\uc2a4\uc5d0 \ub300\ud55c \ucffc\ub9ac\ub97c \uc9c1\uad00\uc801\uc73c\ub85c \uc791\uc131\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 LINQ\uc758 \uae30\ubcf8 \uac1c\ub150\uc5d0\uc11c\ubd80\ud130 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00, &hellip; <a href=\"https:\/\/atmokpo.com\/w\/42718\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[241],"tags":[],"class_list":["post-42718","post","type-post","status-publish","format-standard","hentry","category-csharp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/42718\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"C#\uc740 \uac1d\uccb4 \uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub85c \uc2dc\uc791\ud588\uc9c0\ub9cc, \ucd5c\uadfc \uba87 \ub144 \ub3d9\uc548 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c\ub3c4 \uc9c0\uc6d0\ud558\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \uac1c\ubc1c\uc790\ub4e4\uc740 \ub354\uc6b1 \uc720\uc5f0\ud558\uace0 \uac15\ub825\ud55c \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. LINQ(Language Integrated Query)\ub294 \uc774\ub7ec\ud55c \ubcc0\ud654\uc758 \uc0c1\uc9d5\uc801\uc778 \uc694\uc18c \uc911 \ud558\ub098\ub85c, \ub370\uc774\ud130 \uc18c\uc2a4\uc5d0 \ub300\ud55c \ucffc\ub9ac\ub97c \uc9c1\uad00\uc801\uc73c\ub85c \uc791\uc131\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 LINQ\uc758 \uae30\ubcf8 \uac1c\ub150\uc5d0\uc11c\ubd80\ud130 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00, &hellip; \ub354 \ubcf4\uae30 &quot;[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/42718\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-13T20:48:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:34:39+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/42718\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42718\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608\",\"datePublished\":\"2024-11-13T20:48:07+00:00\",\"dateModified\":\"2024-11-26T06:34:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42718\/\"},\"wordCount\":54,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"csharp\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/42718\/\",\"url\":\"https:\/\/atmokpo.com\/w\/42718\/\",\"name\":\"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-13T20:48:07+00:00\",\"dateModified\":\"2024-11-26T06:34:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42718\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/42718\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/42718\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/42718\/","og_locale":"ko_KR","og_type":"article","og_title":"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"C#\uc740 \uac1d\uccb4 \uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub85c \uc2dc\uc791\ud588\uc9c0\ub9cc, \ucd5c\uadfc \uba87 \ub144 \ub3d9\uc548 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c\ub3c4 \uc9c0\uc6d0\ud558\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \uac1c\ubc1c\uc790\ub4e4\uc740 \ub354\uc6b1 \uc720\uc5f0\ud558\uace0 \uac15\ub825\ud55c \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. LINQ(Language Integrated Query)\ub294 \uc774\ub7ec\ud55c \ubcc0\ud654\uc758 \uc0c1\uc9d5\uc801\uc778 \uc694\uc18c \uc911 \ud558\ub098\ub85c, \ub370\uc774\ud130 \uc18c\uc2a4\uc5d0 \ub300\ud55c \ucffc\ub9ac\ub97c \uc9c1\uad00\uc801\uc73c\ub85c \uc791\uc131\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 LINQ\uc758 \uae30\ubcf8 \uac1c\ub150\uc5d0\uc11c\ubd80\ud130 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00, &hellip; \ub354 \ubcf4\uae30 \"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608\"","og_url":"https:\/\/atmokpo.com\/w\/42718\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-13T20:48:07+00:00","article_modified_time":"2024-11-26T06:34:39+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/42718\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/42718\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608","datePublished":"2024-11-13T20:48:07+00:00","dateModified":"2024-11-26T06:34:39+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/42718\/"},"wordCount":54,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["csharp"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/42718\/","url":"https:\/\/atmokpo.com\/w\/42718\/","name":"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-13T20:48:07+00:00","dateModified":"2024-11-26T06:34:39+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/42718\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/42718\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/42718\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"[\uac1d\uccb4\uc9c0\ud5a5] 5.LINQ\uc640 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d \uc694\uc18c, \uc9c0\uc5f0 \ud3c9\uac00\uc640 IEnumerable\uc758 \uc0ac\uc6a9 \uc608"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=42718"}],"version-history":[{"count":2,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42718\/revisions"}],"predecessor-version":[{"id":42757,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42718\/revisions\/42757"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=42718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=42718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=42718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}