[Solved] How to get data from observablecollection and display into console application in c#?


since object1 is a collection, how do you want to print the data.
Assuming that you want to print each object in each line.

 for (int i = 0; i < object1.Count; i++)
 {
      Console.WriteLine(string.Concat(object1[i].item1, "---", object1[i].Item2)
 }

1

solved How to get data from observablecollection and display into console application in c#?