IEnumerator<T> is IDisposableIEnumerable<T>がリソースを抱えている可能性外部リソース(ファイル,DB,etc…)からの読み込みに便利二度読みすると重かったり結果が変化したりしやすくて危険static IEnumerable<string> EnumerateLines(string path){using (var sr = new StreamReader(path)){よって生のIEnumerator<T>を扱うとwhile (!sr.EndOfStream){きは必ずusingすること!foreachやyield return sr.ReadLine();LINQの標準クエリ演算子は全てusing}されています。これはmustです}}
Transparent Identifier #fromfroma in sourcefrom b in sourcefrom c in sourcefrom d in sourcefrom e in sourcewhere a % 2 == 0 && b % 2 == 0 && c % 2 == 0select string.Concat(a, b, c, d, e);