예제 #1
0
    public override int GetHashCode()
    {
        unchecked
        {
            var hashCode = TypeFullyQualified.GetHashCode();
            hashCode = (hashCode * 397) ^ _type.IsReferenceType.GetHashCode();
            hashCode = (hashCode * 397) ^ InnerTypesInfo.GetHashCode();
            hashCode = (hashCode * 397) ^ Settings.GetHashCode();
            hashCode = (hashCode * 397) ^ ConstructorArguments.ComputeHashCode();
            hashCode = (hashCode * 397) ^ Items.ComputeHashCode();

            return(hashCode);
        }
    }
예제 #2
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);
        }
    }