Rename Create to CreateReport for consistency

This commit is contained in:
Matt Nadareski
2025-04-14 12:14:57 -04:00
parent 8c2f25afc4
commit f3e2ffaf56
3 changed files with 3 additions and 3 deletions

View File

@@ -532,7 +532,7 @@ namespace SabreTools.DatTools
/// <param name="statReportFormat">Format of the Statistics Report to be created</param>
/// <param name="statsList">List of statistics objects to set</param>
/// <returns>BaseReport of the specific internal type that corresponds to the inputs</returns>
public static BaseReport? Create(StatReportFormat statReportFormat, List<DatStatistics> statsList)
public static BaseReport? CreateReport(StatReportFormat statReportFormat, List<DatStatistics> statsList)
{
return statReportFormat switch
{

View File

@@ -172,7 +172,7 @@ namespace SabreTools.DatTools
string outfile = outfiles[reportFormat];
try
{
Parser.Create(reportFormat, stats)?.WriteToFile(outfile, baddumpCol, nodumpCol, throwOnError);
Parser.CreateReport(reportFormat, stats)?.WriteToFile(outfile, baddumpCol, nodumpCol, throwOnError);
}
catch (Exception ex) when (!throwOnError)
{

View File

@@ -219,7 +219,7 @@ namespace SabreTools.DatTools
[
datFile.DatStatistics,
];
var consoleOutput = Parser.Create(StatReportFormat.None, statsList);
var consoleOutput = Parser.CreateReport(StatReportFormat.None, statsList);
consoleOutput!.WriteToFile(null, true, true);
}