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