<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pierre3</author_name>
  <author_url>https://blog.hatena.ne.jp/pierre3/</author_url>
  <blog_title>pierre3のブログ</blog_title>
  <blog_url>https://pierre3.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>パイプ経由でのコレクションの受け渡し方などを調べようと思い、以下のようなイテレータクラスを用意しました。 IEnumerable&lt;T&gt; および IEnumerator&lt;T&gt; インターフェースを実装して、インターフェースの各メソッドが実行されるとそのメソッドの名前を出力するようにしています。 まずは、C# で実行してみます。 [c#] static void Main(string[] args) { var ite = IteratorHelper.CreateIterator(100, 200, 300); Console.WriteLine(&quot;[foreach]&quot;); foreach (v…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpierre3.hatenablog.com%2Fentry%2F2014%2F09%2F23%2F112404&quot; title=&quot;PowerShell で ジェネリック版コレクション IEnumerable&amp;lt;T&amp;gt;を列挙する場合の注意 - pierre3のブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-09-23 11:24:04</published>
  <title>PowerShell で ジェネリック版コレクション IEnumerable&lt;T&gt;を列挙する場合の注意</title>
  <type>rich</type>
  <url>https://pierre3.hatenablog.com/entry/2014/09/23/112404</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
