Array

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
 
K

KJ

This works:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Generic.List 1
Delete List elements 0
CheckBox 1
Generic.List 1
Generic List to String 3
Converting an Array to a String in JavaScript 7
Generic List to Array 2
Control versus WebControl 1

Members online

Forum statistics

Threads
473,793
Messages
2,569,640
Members
45,353
Latest member
RogerDoger

Latest Threads

Top