{"id":510,"date":"2023-02-11T11:21:07","date_gmt":"2023-02-11T11:21:07","guid":{"rendered":"https:\/\/dijix.com.ua\/blog\/?p=510"},"modified":"2023-02-11T11:21:07","modified_gmt":"2023-02-11T11:21:07","slug":"kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c","status":"publish","type":"post","link":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/","title":{"rendered":"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#]"},"content":{"rendered":"<p>\u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach \u043c\u043e\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0430\u043c\u0438, \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u0457\u0445.<\/p>\n<p>Foreach \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u043d\u0430\u0434 \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u044f\u043c\u0438, \u044f\u043a\u0456 \u0440\u0435\u0430\u043b\u0456\u0437\u0443\u044e\u0442\u044c IEnumerable. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0438\u043a\u043b\u0438\u043a\u0430\u0442\u0438 GetEnumerator \u0434\u043b\u044f \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u0457, \u044f\u043a\u0438\u0439 \u043f\u043e\u0432\u0435\u0440\u043d\u0435 Enumerator.<\/p>\n<p>\u041f\u0435\u0440\u0435\u043b\u0456\u0447\u0443\u0432\u0430\u0447 \u043c\u0430\u0454 \u043c\u0435\u0442\u043e\u0434 \u0456 \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u0456\u0441\u0442\u044c:<\/p>\n<ul>\n<li>MoveNext()<\/li>\n<li>Current<\/li>\n<\/ul>\n<p><strong>Current<\/strong> \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043e\u0431&#8217;\u0454\u043a\u0442, \u043d\u0430 \u044f\u043a\u043e\u043c\u0443 \u043d\u0430\u0440\u0430\u0437\u0456 \u043f\u0435\u0440\u0435\u0431\u0443\u0432\u0430\u0454 <strong>Enumerator<\/strong>, <strong>MoveNext<\/strong> \u043e\u043d\u043e\u0432\u043b\u044e\u0454 Current \u0434\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u043e\u0431&#8217;\u0454\u043a\u0442\u0430.<\/p>\n<p>\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0456\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u0447\u0443\u0436\u0430 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0456\u0457 \u043f\u0435\u0440\u0435\u0440\u0430\u0445\u0443\u0432\u0430\u043d\u043d\u044f \u0456 \u043d\u0435 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u0430.<\/p>\n<p>\u0422\u043e\u043c\u0443 \u0431\u0456\u043b\u044c\u0448\u0456\u0441\u0442\u044c \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u0439 \u043c\u043e\u0436\u043d\u0430 \u043e\u0431\u0456\u0439\u0442\u0438 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0456\u043d\u0434\u0435\u043a\u0441\u0430\u0442\u043e\u0440\u0430 \u0456 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 for.<\/p>\n<p>\u042f \u0432\u0432\u0430\u0436\u0430\u044e \u0437\u0430 \u043a\u0440\u0430\u0449\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0446\u0438\u043a\u043b for \u0443 \u0446\u0456\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0456\u0457, \u043d\u0456\u0436 \u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0443\u0432\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0457 \u0437\u043c\u0456\u043d\u043d\u043e\u0457, \u044f\u043a \u0443 \u0446\u044c\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456:<\/p>\n<pre class=\"lang:default decode:true \"> static void Main()\r\n    {\r\n        int[] array = { 1, 2, 3, 5 };\r\n        int index = 0;\r\n\r\n        foreach (int item in array)\r\n        {\r\n            Console.WriteLine($\"Item - {item}, Index - {index++}\");\r\n        }\r\n    }<\/pre>\n<p>\u041a\u0440\u0430\u0449\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0446\u0438\u043a\u043b <strong>for<\/strong>:<\/p>\n<pre class=\"lang:default decode:true\">static void Main()\r\n    {\r\n        int[] array = { 1, 2, 3, 5 };\r\n\r\n        for (int i = 0; i &lt; array.Length; i++)\r\n        {\r\n            Console.WriteLine($\"Item - {array[i]}, Index - {i}\");\r\n        }\r\n    }<\/pre>\n<p>\u0422\u0430\u043a \u0441\u0430\u043c\u043e, \u0432 C#7 \u0437&#8217;\u044f\u0432\u0438\u0432\u0441\u044f \u0433\u0456\u0434\u043d\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456 \u0446\u0438\u043a\u043b\u0443 foreach (\u0442\u043e\u0431\u0442\u043e \u043a\u043e\u0440\u0442\u0435\u0436\u0456\u0432). \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0443 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438 \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u0440\u043e\u0437\u0448\u0438\u0440\u0435\u043d\u043d\u044f:<\/p>\n<pre class=\"lang:default decode:true \">class Programm\r\n{\r\n    static void Main()\r\n    {\r\n        int[] array = { 1, 2, 3, 5 };\r\n\r\n        foreach (var (item, index) in array.WithIndex())\r\n        {\r\n            Console.WriteLine($\"Item - {item}, Index - {index}\");\r\n        }\r\n    }\r\n}\r\npublic static class EnumExtension\r\n{\r\n    public static IEnumerable&lt;(T item, int index)&gt; WithIndex&lt;T&gt;(this IEnumerable&lt;T&gt; self)\r\n       =&gt; self.Select((item, index) =&gt; (item, index));\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach \u043c\u043e\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0430\u043c\u0438, \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u0457\u0445. Foreach \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u043d\u0430\u0434 \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u044f\u043c\u0438, \u044f\u043a\u0456 \u0440\u0435\u0430\u043b\u0456\u0437\u0443\u044e\u0442\u044c IEnumerable. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\">Continue reading<span class=\"screen-reader-text\">\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#]<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"uk","_original_post":"https:\/\/dijix.com.ua\/blog\/?p=508","footnotes":""},"categories":[10],"tags":[],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-otvety-na-voprosy-c","uk","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#] - Dijix - \u0411\u043b\u043e\u0433<\/title>\r\n<meta name=\"description\" content=\"\u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach \u043c\u043e\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0430\u043c\u0438, \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u0457\u0445.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\" \/>\r\n<meta property=\"og:locale\" content=\"uk_UA\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#] - Dijix - \u0411\u043b\u043e\u0433\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Dijix - \u0411\u043b\u043e\u0433\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Dijixs\" \/>\r\n<meta property=\"article:published_time\" content=\"2023-02-11T11:21:07+00:00\" \/>\r\n<meta name=\"author\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u0445\u0432\u0438\u043b\u0438\u043d\u0438\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\"},\"author\":{\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\"},\"headline\":\"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#]\",\"datePublished\":\"2023-02-11T11:21:07+00:00\",\"dateModified\":\"2023-02-11T11:21:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\"},\"wordCount\":136,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"articleSection\":[\"\u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f C#\"],\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\",\"name\":\"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#] - Dijix - \u0411\u043b\u043e\u0433\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\"},\"datePublished\":\"2023-02-11T11:21:07+00:00\",\"dateModified\":\"2023-02-11T11:21:07+00:00\",\"description\":\"\u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach \u043c\u043e\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0430\u043c\u0438, \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u0457\u0445.\",\"breadcrumb\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#breadcrumb\"},\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/dijix.com.ua\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"description\":\"\ud83d\udc9c\",\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"uk\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"contentUrl\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"width\":159,\"height\":92,\"caption\":\"Dijix - \u0411\u043b\u043e\u0433\"},\"image\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Dijixs\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\",\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"caption\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\"},\"sameAs\":[\"https:\/\/dijix.com.ua\/blog\"],\"url\":\"https:\/\/dijix.com.ua\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#] - Dijix - \u0411\u043b\u043e\u0433","description":"\u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach \u043c\u043e\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0430\u043c\u0438, \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u0457\u0445.","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:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/","og_locale":"uk_UA","og_type":"article","og_title":"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#] - Dijix - \u0411\u043b\u043e\u0433","og_url":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/","og_site_name":"Dijix - \u0411\u043b\u043e\u0433","article_publisher":"https:\/\/www.facebook.com\/Dijixs","article_published_time":"2023-02-11T11:21:07+00:00","author":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f":"2 \u0445\u0432\u0438\u043b\u0438\u043d\u0438"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#article","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/"},"author":{"name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d"},"headline":"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#]","datePublished":"2023-02-11T11:21:07+00:00","dateModified":"2023-02-11T11:21:07+00:00","mainEntityOfPage":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/"},"wordCount":136,"commentCount":0,"publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"articleSection":["\u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f C#"],"inLanguage":"uk","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/","url":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/","name":"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#] - Dijix - \u0411\u043b\u043e\u0433","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/#website"},"datePublished":"2023-02-11T11:21:07+00:00","dateModified":"2023-02-11T11:21:07+00:00","description":"\u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0434\u0435\u043a\u0441\u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach \u043c\u043e\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0430\u043c\u0438, \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u0457\u0445.","breadcrumb":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#breadcrumb"},"inLanguage":"uk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-poluchit-indeks-tekushhej-iteraczii-czikla-foreach-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/dijix.com.ua\/blog\/"},{"@type":"ListItem","position":2,"name":"\u042f\u043a \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0456\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u0457 \u0446\u0438\u043a\u043b\u0443 foreach [C#]"}]},{"@type":"WebSite","@id":"https:\/\/dijix.com.ua\/blog\/#website","url":"https:\/\/dijix.com.ua\/blog\/","name":"Dijix - \u0411\u043b\u043e\u0433","description":"\ud83d\udc9c","publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"uk"},{"@type":"Organization","@id":"https:\/\/dijix.com.ua\/blog\/#organization","name":"Dijix - \u0411\u043b\u043e\u0433","url":"https:\/\/dijix.com.ua\/blog\/","logo":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","contentUrl":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","width":159,"height":92,"caption":"Dijix - \u0411\u043b\u043e\u0433"},"image":{"@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Dijixs"]},{"@type":"Person","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d","name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","image":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","caption":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430"},"sameAs":["https:\/\/dijix.com.ua\/blog"],"url":"https:\/\/dijix.com.ua\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":1,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/510\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}