tags:

views:

124

answers:

1

I was just wondering if you can do something like this

List<string> maincolumns = new List<string>();
Select s = new Select(maincolumns)

I know I can use a string[] but I need to build up the query and once I set the string[] I can't append columns :(

+2  A: 

You can do:

List<string> maincolumns = new List<string>();
// example appends...
maincolumns.Add("Column1");
maincolumns.Add("Column2");
Select s = new Select(maincolumns.ToArray());
John Rasch
LOL... Legend Thanks ;)
leen3o