<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baba_s</author_name>
  <author_url>https://blog.hatena.ne.jp/baba_s/</author_url>
  <blog_title>コガネブログ</blog_title>
  <blog_url>https://baba-s.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>C# - 拡張メソッド</anon>
  </categories>
  <description>はじめに for (int i = 0; i &lt; MAX; i++) { Debug.Log(i); } 上記のような単純なループ処理はよく記述しますが ループ変数の宣言や終了条件の記述、ループ変数のインクリメントなど 処理内容の単純さに比べると構文は冗長です なので、下記のような拡張メソッドを用意すると もっと簡潔にループ処理を記述できるようになります ソースコード /// &lt;summary&gt; /// int 型の拡張メソッドを管理するクラス /// &lt;/summary&gt; public static partial class IntExtensions { /// &lt;summary&gt; //…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2014%2F04%2F15%2F141520&quot; title=&quot;【C#】Rubyライクなループ処理を拡張メソッドで実現する - コガネブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20180826/20180826160156.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-15 14:15:20</published>
  <title>【C#】Rubyライクなループ処理を拡張メソッドで実現する</title>
  <type>rich</type>
  <url>https://baba-s.hatenablog.com/entry/2014/04/15/141520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
