Exemple #1
0
 protected virtual string GetHashKey(TKey key)
 {
     if (Comparer != null)
     {
         return(Comparer.GetHashCode(key).As <string>());
     }
     return(Js.GetHashKey(key));
 }
Exemple #2
0
        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));
        }
Exemple #3
0
 protected virtual string GetHashKey(TKey key)
 {
     return(Js.GetHashKey(key));
 }