Hi,
I am trying to define a 'null' LINQ Table as a global variable and then use a switch statement to deturmine what the Table should be.
I am having problems defining the datatype and also assigning values to it.
Hopefully the code below will explain better.
System.Data.Linq.Table table;
switch (x) {
case '1':
table = DataClassesDataContext.Table_Name;
break;
case '2':
table = DataClassesDataContext.Table_Name2;
break;
}
Thanks for any help given