This documentation is archived and is not being maintained.

TypedTableBase<T>.Cast<TResult> Method

Converts the elements of an [T:System.Data.TypedTableBase'1] to the specified type. This method supports typed DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool. This method is not intended to be used directly from your code.

Namespace:  System.Data
Assembly:  System.Data.DataSetExtensions (in System.Data.DataSetExtensions.dll)

public EnumerableRowCollection<TResult> Cast<TResult>()

Type Parameters


Return Value

Type: System.Data.EnumerableRowCollection<TResult>
An EnumerableRowCollection that contains each element of the source sequence converted to the specified type.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

.NET Compact Framework

Supported in: 3.5