Navigation: X# 文档 > X# 编译器错误和警告
Error XS1622
Cannot return a value from an iterator. Use the yield return statement to return a value, or yield break to end the iteration.