public static string ToHeaderDisplayString(this ICompatibilityIssue issue) { return(issue switch { null => throw new ArgumentNullException(nameof(issue)), IMissingMemberCompatibilityIssue _ => "The following members were not present in the newer assembly:", MemberAccessibilityReducedIssue _ => "The following members reduced their visibility in the newer assembly:", _ => $"Issues of unhandled type '{issue.GetType()}' were detected: ", });
public DetectedCompatibilityIssue(ICompatibilityIssue issue, IReadOnlyList <MemberReference> locations) => (this.Issue, this.Locations) = (issue, locations);