語言

ReadOnlyCollection<T>.Empty 屬性

定義

得到一個空的 ReadOnlyCollection<T>。

public:
 static property System::Collections::ObjectModel::ReadOnlyCollection<T> ^ Empty { System::Collections::ObjectModel::ReadOnlyCollection<T> ^ get(); };
public static System.Collections.ObjectModel.ReadOnlyCollection<T> Empty { get; }
static member Empty : System.Collections.ObjectModel.ReadOnlyCollection<'T>
Public Shared ReadOnly Property Empty As ReadOnlyCollection(Of T)

屬性值

一個空洞的 ReadOnlyCollection<T>。

備註

回傳的實例是不可變的,且永遠為空。

適用於