From 64774f3eb023e560522b7f0b77ec7b614f3d3c39 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 10 Oct 2023 15:53:43 -0700 Subject: [PATCH 1/2] Adding DiagnosticRecord.ToString() (Fixes #1945) --- Engine/Generic/DiagnosticRecord.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Engine/Generic/DiagnosticRecord.cs b/Engine/Generic/DiagnosticRecord.cs index cd325ecf2..0673e1391 100644 --- a/Engine/Generic/DiagnosticRecord.cs +++ b/Engine/Generic/DiagnosticRecord.cs @@ -127,6 +127,14 @@ public DiagnosticRecord( RuleSuppressionID = ruleId; this.suggestedCorrections = suggestedCorrections; } + + /// + /// Outputs a DiagnosticRecord as a string. + /// + /// Returns the message in a DiagnosticRecord. + public override string ToString() { + return this.Message; + } } From b3cdc563213b3dfbc95ee602b1f18807573a03ee Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 10 Oct 2023 16:01:17 -0700 Subject: [PATCH 2/2] Adding CorrectionExtent.ToString() (Fixes #1944) --- Engine/Generic/CorrectionExtent.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Engine/Generic/CorrectionExtent.cs b/Engine/Generic/CorrectionExtent.cs index caad49cdb..f92070844 100644 --- a/Engine/Generic/CorrectionExtent.cs +++ b/Engine/Generic/CorrectionExtent.cs @@ -104,5 +104,13 @@ public CorrectionExtent( { } + + /// + /// Outputs a CorrectionExtent as a string. + /// + /// Returns the text in a CorrectionExtent. + public override string ToString() { + return this.Text; + } } }