Perform mass cleanup

This is cleanup based on both new .NET functionality (in 6 and 7) as well as a ton of simplifications and things that were missed that were caught due to the cleanup.
This commit is contained in:
Matt Nadareski
2023-04-19 16:39:58 -04:00
parent fd5fd79b95
commit 728b5d6b27
95 changed files with 1353 additions and 1572 deletions

View File

@@ -27,7 +27,7 @@ namespace SabreTools.Reports.Formats
/// <inheritdoc/>
public override bool WriteToFile(string outfile, bool baddumpCol, bool nodumpCol, bool throwOnError = false)
{
InternalStopwatch watch = new InternalStopwatch($"Writing statistics to '{outfile}");
InternalStopwatch watch = new($"Writing statistics to '{outfile}");
try
{
@@ -39,7 +39,7 @@ namespace SabreTools.Reports.Formats
return false;
}
XmlTextWriter xtw = new XmlTextWriter(fs, Encoding.UTF8)
XmlTextWriter xtw = new(fs, Encoding.UTF8)
{
Formatting = Formatting.Indented,
IndentChar = '\t',