Returns an implicit conversion from a list to a read only list.
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Shared Widening Operator CType ( _
list As List(Of T) _
) As ReadOnlyList(Of T)
'用途
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 支援自訂轉換的使用,但不支援新轉換的宣告。
參數
- list
型別:System.Collections.Generic.List<T>
The list to convert.
傳回值
型別:Microsoft.SqlServer.Management.Sdk.Sfc.ReadOnlyList<T>
A list that wraps the specified list.