23 using System.Collections.Generic;
26 namespace Lucene.Net.Search.Vectorhighlight
28 public class HashMap<K, V> : Dictionary<K, V>
30 V _NullKeyValue =
default(V);
32 public new void Add(K key,V value)
35 _NullKeyValue = value;
44 return base.Count + (_NullKeyValue!= null ? 1 : 0);
48 public new V
this[K key]
60 if (key == null)
return _NullKeyValue;
63 base.TryGetValue(key, out v);
67 public void Put(K key, V val)