Ejemplo n.º 1
0
        protected override ChangeType CompareInstance(ICanCompare previous, bool suppressBreakingChanges)
        {
            ChangeType change = base.CompareInstance(previous, suppressBreakingChanges);

            StubDetail other = (StubDetail)previous;

            change |= VisibilityUtil.GetVisibilityChange(other._visibility, _visibility, suppressBreakingChanges);

            if (_content != other._content)
            {
                change |= ChangeType.ContentChanged;
            }

            return(change);
        }
Ejemplo n.º 2
0
        protected virtual ChangeType CompareVisibility(ICanCompare previous, bool suppressBreakingChanges)
        {
            MemberDetail other = (MemberDetail)previous;

            return(VisibilityUtil.GetVisibilityChange(other._visibility, _visibility, suppressBreakingChanges));
        }