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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top