System.Data.Linq.Table is a generic type, thus you can't create an object of this type. You must provide the 'parameter' so the compiler can complete the generic class and make it a specific class. For example, you can't have a List<>, you provide a type with it (List) and the compiler 'completes' the class.
That given, if your two classes you wish to assign to this variable have a common base type you can create a Linq.Table of that type and assign them as you are doing. For example. if the classes are derived from "MyDatabase", you could use
System.Data.Linq.Table<MyDatabase> table = null;
Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
db is a variable, not a type.
You can have a Table of DataClassesDataContext, not a Table of db.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661