protected override bool FromInternalKeyToStackKey(StrongKey <TStrongKey> internalKey, out StrongKey <TStrongKey> externalKey)
 {
     externalKey = internalKey;
     return(true);
 }
 protected override StrongKey <TStrongKey> FromStackKeyToStorageKey(StrongKey <TStrongKey> externalKey)
 {
     return(externalKey);
 }
 protected override bool FromInternalKeyToExternalKey(StrongKey <TStrongKey> internalKey, out TStrongKey externalKey)
 {
     externalKey = internalKey._element;
     return(true);
 }
 protected override bool FromInternalKeyToStackKey(StrongKey <TStrongKey> internalKey, out Stacktype <TStrongKey> externalKey)
 {
     externalKey = Stacktype.Create(internalKey._element);
     return(true);
 }
Exemple #5
0
 public int GetHashCode(ref StrongKey <E> obj, bool objIsWeak)
 {
     return(_equalityComparer.GetHashCode(obj._element));
 }
Exemple #6
0
 public bool Equals(ref StrongKey <E> x, bool xIsWeak, ref StrongKey <E> y, bool yIsWeak)
 {
     return(_equalityComparer.Equals(x._element, y._element));
 }
Exemple #7
0
 public int GetHashCode(StrongKey <S> obj)
 {
     return(_strongValueComparer.GetHashCode(obj._element));
 }
Exemple #8
0
 public bool Equals(StrongKey <S> x, StrongKey <S> y)
 {
     return(_strongValueComparer.Equals(x._element, y._element));
 }