protected virtual string GetHashKey(TKey key) { if (Comparer != null) { return(Comparer.GetHashCode(key).As <string>()); } return(Js.GetHashKey(key)); }
protected virtual string GetHashKey(TKey key) { if (Comparer != null) { return(Comparer.GetHashCode(key).As <string>()); } if (key != null && JsContext.JsCode("typeof key.GetHashCode").As <JsTypes>() == JsTypes.function) { return(key.GetHashCode().As <string>()); } return(Js.GetHashKey(key)); }
protected virtual string GetHashKey(TKey key) { return(Js.GetHashKey(key)); }