I have the following method:
public IEnumerable<object> GetParameters(Context context)
{
yield return new[] { 1, 2, 3 };
}
When I loop through this enumeration:
foreach (var parameter in GetParameters())
{
// Do something here with parameter
}
I expect the parameter to be 1 at the first loop, 2 at the second and 3 and the third but this is not the case 🙁

parameter is an array that contains all values!
What am I missing here??
Change your method to
or