C# Error CS0202 - foreach requires that the return type 'type' of 'type.GetEnumerator()' 