From 86f7a8aa4eb05a2f685ac84796045f20de2a79dd Mon Sep 17 00:00:00 2001 From: Alex Crome Date: Sat, 14 Sep 2024 14:36:44 +0100 Subject: [PATCH] Fix merging of classes with non unique names. Extends the fix from 78a1a92 to also apply to merging. --- src/ReportGenerator.Core/Parser/Analysis/Assembly.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReportGenerator.Core/Parser/Analysis/Assembly.cs b/src/ReportGenerator.Core/Parser/Analysis/Assembly.cs index 4f559d15..c32dc8cf 100644 --- a/src/ReportGenerator.Core/Parser/Analysis/Assembly.cs +++ b/src/ReportGenerator.Core/Parser/Analysis/Assembly.cs @@ -177,7 +177,7 @@ internal void Merge(Assembly assembly) foreach (var @class in assembly.classes) { - var existingClass = this.classes.FirstOrDefault(c => c.Name == @class.Name); + var existingClass = this.classes.FirstOrDefault(c => c.Equals(@class)); if (existingClass != null) {