Conversione ReadOnlyList<T> Implicit (List<T> to ReadOnlyList<T>)
Returns an implicit conversion from a list to a read only list.
Spazio dei nomi Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintassi
'Dichiarazione
Public Shared Widening Operator CType ( _
list As List(Of T) _
) As ReadOnlyList(Of T)
'Utilizzo
Dim input As List(Of T)
Dim output As ReadOnlyList(Of T)
output = CType(input, ReadOnlyList(Of T))
public static implicit operator ReadOnlyList<T> (
List<T> list
)
static implicit operator ReadOnlyList<T> (
List<T>^ list
)
JScript supporta l'utilizzo di cast personalizzati, ma non la dichiarazione di nuovi cast.
Parametri
- list
Tipo: System.Collections.Generic.List<T>
The list to convert.
Valore restituito
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.ReadOnlyList<T>
A list that wraps the specified list.