最終更新:2025-04-29 (火) 16:10:09 (77d)  

IEnumerable
Top / IEnumerable

列挙可能なオブジェクトを表すインターフェース

System.Collections.IEnumerable?

  • 非ジェネリック コレクションに対する単純な反復処理をサポートする列挙子を公開します。

System.Collections.Generic.IEnumerable(T)

  • 指定した型のコレクションに対する単純な反復処理をサポートする列挙子を公開します。

使われどころ

  • foreach - 内部で自動でGetEnumerator?を呼び出している

メソッド

IEnumerator (反復子)

  • IEnumerator.MoveNext?
  • IEnumerator.Reset?
  • IEnumerator.Current?
  • Where?

関連