Ejemplo n.º 1
0
    public override int GetHashCode()
    {
        unchecked
        {
            var hashCode = Name.GetHashCode();
            hashCode = (hashCode * 397) ^ ArgumentName.GetHashCode();
            hashCode = (hashCode * 397) ^ TypeFullyQualifiedWithNullability.GetHashCode();
            hashCode = (hashCode * 397) ^ IsStatic.GetHashCode();
            hashCode = (hashCode * 397) ^ SpecialType.GetHashCode();
            hashCode = (hashCode * 397) ^ IsReferenceType.GetHashCode();

            return(hashCode);
        }
    }
Ejemplo n.º 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);
        }
    }