Array

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have an array of controls and I want to copy it to a Generic.List(Of
Control).

How can I do this?

Thanks,
Miguel
 
This works:

Control[] foos = new Control[] { new Button(), new LinkButton() };
List<Control> foo = new List<Control>(foos);
 
Back
Top