Link to home
Start Free TrialLog in
Avatar of brokeMyLegBiking
brokeMyLegBiking

asked on

convert array of objects to ICollection

how can I convert an array of objects into an ICollection?

I am attempting to add an array of type Object to an ArrayList.


 Dim items(combo1.Items.Count - 1) As Object
Dim ic As ICollection
ic = CType(items, ICollection)
Dim al As New ArrayList
al.AddRange(ic)


(this is giving me an error)
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial