Converting observable collection back to regular collection

Shawn Mclean picture Shawn Mclean · Nov 1, 2009 · Viewed 86.9k times · Source

A function has a parameter of type object. I debugged it to see what type of datatype the other part of the program sent me. The base was of an ObservableCollection. How do i convert that to a list?

Answer

Jaider picture Jaider · Oct 27, 2010

Just need to add the namespace using System.Linq;

and use the method ToList() in the ObservableCollection object