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