I would like to create multiple objects/instances in a loop. how to do this?
class lh
{
public string name;
public lh(string name)
{
this.name = name; ;
}
}
while((line = ps.ReadLine()) !=null)
{
lh a = new lh(line);
}
obviously I can't create a new object using the same name (a) over and over again