語言

ReadOnlyDictionary<TKey,TValue>.Empty 屬性

定義

得到一個空的 ReadOnlyDictionary<TKey,TValue>。

public:
 static property System::Collections::ObjectModel::ReadOnlyDictionary<TKey, TValue> ^ Empty { System::Collections::ObjectModel::ReadOnlyDictionary<TKey, TValue> ^ get(); };
public static System.Collections.ObjectModel.ReadOnlyDictionary<TKey,TValue> Empty { get; }
static member Empty : System.Collections.ObjectModel.ReadOnlyDictionary<'Key, 'Value>
Public Shared ReadOnly Property Empty As ReadOnlyDictionary(Of TKey, TValue)

屬性值

一個空洞的 ReadOnlyDictionary<TKey,TValue>。

備註

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

適用於