Example #1
0
        protected virtual ChangeType CompareDeclaration(ICanCompare previous, bool suppressBreakingChanges)
        {
            MemberDetail other = (MemberDetail)previous;

            if (string.Compare(_declaration, other._declaration) != 0)
            {
                if ((!suppressBreakingChanges) && (_visibility == Visibility.Public && other._visibility == Visibility.Public))
                {
                    return(ChangeType.DeclarationChangedBreaking);
                }
                else
                {
                    return(ChangeType.DeclarationChangedNonBreaking);
                }
            }

            return(ChangeType.None);
        }
Example #2
0
        protected virtual ChangeType CompareObsoleteStatus(ICanCompare previous, bool suppressBreakingChanges)
        {
            MemberDetail other = (MemberDetail)previous;

            return(ObsoleteUtil.GetObsoleteChange(other._obsoleteAttribute, _obsoleteAttribute, suppressBreakingChanges));
        }
Example #3
0
        protected virtual ChangeType CompareVisibility(ICanCompare previous, bool suppressBreakingChanges)
        {
            MemberDetail other = (MemberDetail)previous;

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