Pregunta

How can I cast an IList<Customer> list to BindingList<Customer>?

¿Fue útil?

Solución

var yourList = new List<Customer>();
var listBinding = new BindingList<Customer>(yourList);

BindingList Constructors

You don't need to do a cast, just provide the BindingList<T> class constructor with IList<T>, which you have.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top