I would like to do something like this in .NET 3.5. What\'s the quickest way?
IEnumerable collection =
TypedDataSet.TypedTableBase
Assuming you're using .NET 4.0, which introduces covariance:
// Presumably your table is of some type deriving from TypedTableBase,
// where T is an auto-generated type deriving from DataRow.
IEnumerable collection = myTypedTable;
The table type itself implements IEnumerable.
Otherwise:
IEnumerable collection = myTypedTable.Cast();