/// <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) && ValueType.Equals(other.ValueType) && OriginalIssuer.Equals(other.OriginalIssuer)); }
/// <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) && ValueType.Equals(other.ValueType, StringComparison.Ordinal) && OriginalIssuer.Equals(other.OriginalIssuer, StringComparison.Ordinal)); }
/// <inheritdoc /> public bool Equals([AllowNull] GroupBy other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Enabled == other.Enabled || Enabled != null && Enabled.Equals(other.Enabled) ) && ( Equals(Groups, other.Groups) || Groups != null && other.Groups != null && Groups.SequenceEqual(other.Groups) ) && ( NameFormat == other.NameFormat || NameFormat != null && NameFormat.Equals(other.NameFormat) ) && ( Equals(Styles, other.Styles) || Styles != null && other.Styles != null && Styles.SequenceEqual(other.Styles) ) && ( GroupsSrc == other.GroupsSrc || GroupsSrc != null && GroupsSrc.Equals(other.GroupsSrc) )); }