示例#1
0
 /// <summary>
 /// See the <see cref="IImmutableDictionary&lt;TKey, TValue&gt;"/> interface.
 /// </summary>
 public ImmutableHashMap <TKey, TValue> Clear()
 {
     return(this.IsEmpty ? this : Empty.WithComparers(this.keyComparer, this.valueComparer));
 }
 /// <summary>
 /// See the <see cref="IImmutableDictionary&lt;TKey, TValue&gt;"/> interface.
 /// </summary>
 public ImmutableHashMap <TKey, TValue> Clear()
 => this.IsEmpty ? this : Empty.WithComparers(_keyComparer, _valueComparer);