예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((_type.GetHashCode() * 397) ^ _arguments.Take(16).Aggregate(19, (result, item) => result * 31 + item.GetHashCode()));
     }
 }
 int ISupportsInterning.GetHashCodeForInterning()
 {
     unchecked
     {
         return withoutSuffix.GetHashCode() + 715613 * withSuffix.GetHashCode();
     }
 }
예제 #3
0
        private static int GetHashCode(ITypeReference?obj)
        {
            var objSymbol = obj?.GetInternalSymbol();

            if (objSymbol is object)
            {
                return(objSymbol.GetHashCode());
            }

            return(obj?.GetHashCode() ?? 0);
        }
예제 #4
0
        int ISupportsInterning.GetHashCodeForInterning()
        {
            int hashCode = genericType.GetHashCode();

            unchecked {
                foreach (ITypeReference t in typeArguments)
                {
                    hashCode *= 27;
                    hashCode += t.GetHashCode();
                }
            }
            return(hashCode);
        }
예제 #5
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     unchecked {
         int hashCode;
         if (targetType != null)
         {
             hashCode = targetType.GetHashCode();
         }
         else
         {
             hashCode = targetExpression.GetHashCode();
         }
         hashCode ^= memberName.GetHashCode();
         hashCode ^= typeArguments.GetHashCode();
         return(hashCode);
     }
 }
예제 #6
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(type.GetHashCode() ^ (attributes != null ? attributes.GetHashCode() : 0) ^ (defaultValue != null ? defaultValue.GetHashCode() : 0));
 }
예제 #7
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(elementType.GetHashCode() ^ 91725814);
 }
예제 #8
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(attributeType.GetHashCode() ^ (positionalArguments != null ? positionalArguments.GetHashCode() : 0) ^ (namedArguments != null ? namedArguments.GetHashCode() : 0) ^ region.GetHashCode());
 }
예제 #9
0
파일: ArrayType.cs 프로젝트: zyj0021/ILSpy
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(elementType.GetHashCode() ^ dimensions);
 }
예제 #10
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return((elementType != null ? elementType.GetHashCode() : 0) ^ arrayElements.GetHashCode());
 }
예제 #11
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     unchecked {
         return(targetType.GetHashCode() + expression.GetHashCode() * 1018829);
     }
 }
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(declaringTypeRef.GetHashCode() ^ name.GetHashCode() ^ additionalTypeParameterCount);
 }
예제 #13
0
 public override int GetHashCode()
 {
     return(Hash.Combine(ElementType.GetHashCode(), Modifier.GetHashCode()));
 }
예제 #14
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(attributeType.GetHashCode() ^ ctorParameterTypes.GetHashCode() ^ BlobReader.GetBlobHashCode(blob));
 }
예제 #15
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return((int)entityType ^ typeReference.GetHashCode() ^ name.GetHashCode() ^ parameterTypes.GetHashCode());
 }
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(type.GetHashCode() ^ (value != null ? value.GetHashCode() : 0));
 }
예제 #17
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     return(type.GetHashCode());
 }