Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0202
foreach requires that the return type '{0}' of '{1}' must have a suitable public MoveNext method and public Current property