public override int GetHashCode() { int hc = IntroducedMemberVisibility.GetHashCode() ^ SuppressedMixins.Aggregate(0, (acc, t) => acc ^ t.GetHashCode()) ^ AdditionalDependencies.Aggregate(0, (acc, t) => acc ^ t.GetHashCode()); return(hc); }
public override bool Equals(object obj) { var other = obj as MixinRelationshipAttribute; return(!object.ReferenceEquals(other, null) && IntroducedMemberVisibility == other.IntroducedMemberVisibility && SuppressedMixins.SequenceEqual(other.SuppressedMixins) && AdditionalDependencies.SequenceEqual(other.AdditionalDependencies)); }