Converting BindingList(Of T) to Array
- by George
Public Class Orders
Inherits System.ComponentModel.BindingList(Of Order)
End Class
Public Sub DataBind(ByVal Orders() As Orders)
End Sub
Dim MyOrders() As Order = Orders.ToArray
SuperListBinder.DataBind(MyOrders) '<<Error occurs on this line
I don't understand this error. I think that I am passing the appropriate data type to a sub. I…