Пример #1
0
        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);
        }
Пример #2
0
        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));
        }