Cs error on foreach.