示例#1
0
    public override int GetHashCode()
    {
        unchecked
        {
            var hashCode = TypeFullyQualified.GetHashCode();
            hashCode = (hashCode * 397) ^ IsReferenceType.GetHashCode();
            hashCode = (hashCode * 397) ^ AttributeInfo.GetHashCode();
            hashCode = (hashCode * 397) ^ Settings.GetHashCode();
            hashCode = (hashCode * 397) ^ EqualityMembers.ComputeHashCode();
            hashCode = (hashCode * 397) ^ AssignableInstanceFieldsAndProperties.ComputeHashCode();

            return(hashCode);
        }
    }
示例#2
0
    public override int GetHashCode()
    {
        unchecked
        {
            var hashCode = TypeFullyQualifiedWithNullability.GetHashCode();
            hashCode = (hashCode * 397) ^ Name.GetHashCode();
            hashCode = (hashCode * 397) ^ (int)ReadAccessibility;
            hashCode = (hashCode * 397) ^ IsStatic.GetHashCode();
            hashCode = (hashCode * 397) ^ IsReferenceType.GetHashCode();
            hashCode = (hashCode * 397) ^ _type.OriginalDefinition.SpecialType.GetHashCode();
            hashCode = (hashCode * 397) ^ SpecialType.GetHashCode();
            hashCode = (hashCode * 397) ^ IsFormattable.GetHashCode();
            hashCode = (hashCode * 397) ^ IsComparable.GetHashCode();
            hashCode = (hashCode * 397) ^ EnumMemberSettings.GetHashCode();
            hashCode = (hashCode * 397) ^ ValueObjectMemberSettings.GetHashCode();

            return(hashCode);
        }
    }
示例#3
0
    public override int GetHashCode()
    {
        unchecked
        {
            var hashCode = EnumTypeFullyQualified.GetHashCode();
            hashCode = (hashCode * 397) ^ IsValidatable.GetHashCode();
            hashCode = (hashCode * 397) ^ HasCreateInvalidImplementation.GetHashCode();
            hashCode = (hashCode * 397) ^ IsReferenceType.GetHashCode();
            hashCode = (hashCode * 397) ^ IsAbstract.GetHashCode();
            hashCode = (hashCode * 397) ^ AttributeInfo.GetHashCode();
            hashCode = (hashCode * 397) ^ KeyProperty.GetHashCode();
            hashCode = (hashCode * 397) ^ (BaseEnum?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ Settings.GetHashCode();
            hashCode = (hashCode * 397) ^ ItemNames.ComputeHashCode();
            hashCode = (hashCode * 397) ^ AssignableInstanceFieldsAndProperties.ComputeHashCode();
            hashCode = (hashCode * 397) ^ FullyQualifiedDerivedTypes.ComputeHashCode();

            return(hashCode);
        }
    }