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