Share via


ReadOnlyList<T> Implicit Conversion (array<T to ReadOnlyList<T>)

Returns an implicit conversion from an array to a list.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Shared Widening Operator CType ( _
    array As T() _
) As ReadOnlyList(Of T)
'Usage
Dim input As T()
Dim output As ReadOnlyList(Of T)

output = CType(input, ReadOnlyList(Of T))
public static implicit operator ReadOnlyList<T> (
    T[] array
)
static implicit operator ReadOnlyList<T> (
    array<T>^ array
)
JScript supports the use of custom casts, but not the declaration of new ones.

Parameters

  • array
    Type: array<T[]
    The array to convert.

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.ReadOnlyList<T>
A list that wraps the specified array.

See Also

Reference

ReadOnlyList<T> Structure

Implicit Overload

Microsoft.SqlServer.Management.Sdk.Sfc Namespace