Прочетете на английски Редактиране

Споделяне чрез


TypedTableBase<T>.Cast<TResult> Method

Definition

Converts the elements of an TypedTableBase<T> 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.

C#
public System.Data.EnumerableRowCollection<TResult> Cast<TResult>();

Type Parameters

TResult

The type to convert the elements to.

Returns

An EnumerableRowCollection that contains each element of the source sequence converted to the specified type.

Applies to

Продукт Версии
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1