I have
List<dynamic> events = new List<dynamic>();
for (int i = 0; i < 3000; i++)
{
if (i % 2 == 0) //is even
{
var dataStart = new
{
TimeId = startTime.AddSeconds(i),
ValueStart = i
};
}
}
how can I output what is in the List object? I am very new to C# so I have tried
for (int j = 0; j < events.Count; j++)
{
Console.WriteLine(events);
}
but this is not working. Any ideas as to what I need to do to correctly output the values of the object?