IEnumerable<T> インターフェイス

IEnumerable<T> インターフェイス (System.Collections.Generic 名前空間)

[APIドキュメント]

public interface IEnumerable<out T> : IEnumerable

  • 指定した型のコレクションに対する単純な反復処理をサポートする列挙子を提供します。
  • IEnumerable<T>を実装することによりforeach文での繰り返し処理が可能になります。