void ComputeHashCode()
 {
     _hashCode  = Name.GetHashCode();
     _hashCode ^= FriendlyName.GetHashCode();
     _hashCode ^= NameFormat.GetHashCode();
     _hashCode ^= Namespace.GetHashCode();
     _hashCode ^= ValueType.GetHashCode();
     _hashCode ^= OriginalIssuer.GetHashCode();
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>
 /// <c>true</c> if the current object is equal to the other parameter; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(AttributeKey other)
 {
     return(other != null &&
            FriendlyName.Equals(other.FriendlyName, StringComparison.Ordinal) &&
            Name.Equals(other.Name, StringComparison.Ordinal) &&
            NameFormat.Equals(other.NameFormat, StringComparison.Ordinal) &&
            Namespace.Equals(other.Namespace, StringComparison.Ordinal) &&
            OriginalIssuer.Equals(other.OriginalIssuer, StringComparison.Ordinal) &&
            ValueType.Equals(other.ValueType, StringComparison.Ordinal));
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>
 /// <c>true</c> if the current object is equal to the other parameter; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(AttributeKey other)
 {
     return(other != null &&
            FriendlyName.Equals(other.FriendlyName) &&
            Name.Equals(other.Name) &&
            NameFormat.Equals(other.NameFormat) &&
            Namespace.Equals(other.Namespace) &&
            OriginalIssuer.Equals(other.OriginalIssuer) &&
            ValueType.Equals(other.ValueType));
 }
            int ComputeHashCode()
            {
                int hashCode = Name.GetHashCode();

                hashCode ^= FriendlyName.GetHashCode();
                hashCode ^= NameFormat.GetHashCode();
                hashCode ^= Namespace.GetHashCode();
                hashCode ^= ValueType.GetHashCode();
                hashCode ^= OriginalIssuer.GetHashCode();
                return(hashCode);
            }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClaimType?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClaimValue?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClaimValueType?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Issuer?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OriginalIssuer?.GetHashCode() ?? 0);
            return(hashCode);
        }