How can I cast an IList<Customer>
list to BindingList<Customer>
?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With