Navigation: X# 文档 > X# 编译器错误和警告
Error XS8344
foreach statement cannot operate on enumerators of type '{0}' in async or iterator methods because '{0}' is a ref struct.