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); }
protected virtual ChangeType CompareObsoleteStatus(ICanCompare previous, bool suppressBreakingChanges) { MemberDetail other = (MemberDetail)previous; return(ObsoleteUtil.GetObsoleteChange(other._obsoleteAttribute, _obsoleteAttribute, suppressBreakingChanges)); }
protected virtual ChangeType CompareVisibility(ICanCompare previous, bool suppressBreakingChanges) { MemberDetail other = (MemberDetail)previous; return(VisibilityUtil.GetVisibilityChange(other._visibility, _visibility, suppressBreakingChanges)); }