I have a class. Let's say Class Employee. I want to store the instances of this class to a container. A simple solution is an array (Dim a(10) as New Employee), but I want to handle the container dynamic at runtime (for example, to add an instance to the container with a user click).
Which is the best solution?
I've tried Arraylist:
Dim a As New Arraylist
a.Add(Emp1 As New Employee)
but early binding (Option Strict On) doesn't allow me to handle the instance (for example, a(0).Age)
Which is the best solution?
I've tried Arraylist:
Dim a As New Arraylist
a.Add(Emp1 As New Employee)
but early binding (Option Strict On) doesn't allow me to handle the instance (for example, a(0).Age)