ImmutableDictionary<TKey,TValue>.Clear 方法

定义

检索排序规则和键/值比较规则与此字典实例相同的空不可变字典。Retrieves an empty immutable dictionary that has the same ordering and key/value comparison rules as this dictionary instance.

public:
 System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ Clear();
public System.Collections.Immutable.ImmutableDictionary<TKey,TValue> Clear ();
member this.Clear : unit -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function Clear () As ImmutableDictionary(Of TKey, TValue)

返回

具有等效排序规则和键/值比较规则的空字典。An empty dictionary with equivalent ordering and key/value comparison rules.

适用于