Convert IList<T> to BindingList<T>
50,512
var yourList = new List<Customer>();
var listBinding = new BindingList<Customer>(yourList);
You don't need to do a cast, just provide the BindingList<T>
class constructor with IList<T>
, which you have.
Author by
Masoud
Updated on July 15, 2020Comments
-
Masoud almost 4 years
How can I cast an
IList<Customer>
list toBindingList<Customer>
?