Skip to content

Commit cd32a21

Browse files
committed
chore: re-order methods to address stylecop issue
1 parent dd35e0f commit cd32a21

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/DotNetApiDiff/Commands/CompareCommand.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,21 @@ public override int Execute([NotNull] CommandContext context, [NotNull] CompareC
297297
}
298298
}
299299

300+
/// <summary>
301+
/// Extracts the member name from a full element name
302+
/// </summary>
303+
/// <param name="elementName">The full element name</param>
304+
/// <returns>The member name</returns>
305+
private static string ExtractMemberName(string elementName)
306+
{
307+
if (string.IsNullOrEmpty(elementName))
308+
return "Unknown";
309+
310+
// For full names like "Namespace.Class.Method", extract just "Method"
311+
var lastDotIndex = elementName.LastIndexOf('.');
312+
return lastDotIndex >= 0 ? elementName.Substring(lastDotIndex + 1) : elementName;
313+
}
314+
300315
/// <summary>
301316
/// Executes the comparison logic using the configured services
302317
/// </summary>
@@ -599,19 +614,4 @@ private Models.ApiComparison CreateApiComparisonFromResult(Models.ComparisonResu
599614
}).ToList()
600615
};
601616
}
602-
603-
/// <summary>
604-
/// Extracts the member name from a full element name
605-
/// </summary>
606-
/// <param name="elementName">The full element name</param>
607-
/// <returns>The member name</returns>
608-
private static string ExtractMemberName(string elementName)
609-
{
610-
if (string.IsNullOrEmpty(elementName))
611-
return "Unknown";
612-
613-
// For full names like "Namespace.Class.Method", extract just "Method"
614-
var lastDotIndex = elementName.LastIndexOf('.');
615-
return lastDotIndex >= 0 ? elementName.Substring(lastDotIndex + 1) : elementName;
616-
}
617617
}

0 commit comments

Comments
 (0)