Link to home
Start Free TrialLog in
Avatar of Waterside
Waterside

asked on

Adding an object to a collection from inside a Class

I have on my page..

Public routes As New List(Of routeData)

In a class I want to use..

routes.Add(New routeData With {......})

But I get..
Reference to a non-shared member requires an object reference

How can I add to my list from within the class ?
ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
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