{"author_url":"https://blog.hatena.ne.jp/griefworker/","blog_url":"https://tnakamura.hatenablog.com/","categories":["C#"],"description":"\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u5168\u8981\u7d20\u306b\u5bfe\u3057\u3066\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u306f foreach \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305f\u307e\u301c\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u6b32\u3057\u304f\u306a\u308b\u6642\u304c\u3042\u308a\u307e\u3059\u3002Ruby \u307f\u305f\u3044\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4ed8 ForEach \u304c\u3042\u308c\u3070\u3044\u3044\u306e\u306b\u3002 public static class EnumerableExtension { public static void ForEachWithIndex<T>(this IEnumerable<T> collection, Action<T, int> block) { int index = 0; foreach (var element in collection) { block(elemen\u2026","type":"rich","provider_name":"Hatena Blog","version":"1.0","width":"100%","provider_url":"https://hatena.blog","title":"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4ed8 ForEach \u304c\u6b32\u3057\u3044\uff01","height":"190","image_url":null,"published":"2009-08-29 00:00:00","author_name":"griefworker","url":"https://tnakamura.hatenablog.com/entry/20090829/foreach_with_index","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F20090829%2Fforeach_with_index\" title=\"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4ed8 ForEach \u304c\u6b32\u3057\u3044\uff01 - present\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"present"}