Class FormXamlDiagnostic
- Namespace
- RDCore.Forms.Xaml
- Assembly
- RDCore.Forms.dll
One thing a read of an RDForms document reports.
public sealed record FormXamlDiagnostic : IEquatable<FormXamlDiagnostic>
- Inheritance
-
FormXamlDiagnostic
- Implements
- Inherited Members
Constructors
FormXamlDiagnostic(FormXamlDiagnosticKind, FormXamlSeverity, int, string)
One thing a read of an RDForms document reports.
public FormXamlDiagnostic(FormXamlDiagnosticKind Kind, FormXamlSeverity Severity, int Line, string Message)
Parameters
KindFormXamlDiagnosticKindWhat is reported.
SeverityFormXamlSeverityHow much the reported thing costs the read.
LineintThe 1-based line of the document it is about, or 0 where the document has none, such as an empty one.
MessagestringThe report, in the current UI culture.
Properties
Kind
What is reported.
public FormXamlDiagnosticKind Kind { get; init; }
Property Value
Line
The 1-based line of the document it is about, or 0 where the document has none, such as an empty one.
public int Line { get; init; }
Property Value
Message
The report, in the current UI culture.
public string Message { get; init; }
Property Value
Severity
How much the reported thing costs the read.
public FormXamlSeverity Severity { get; init; }
Property Value
Methods
ToString()
The line, the severity and the message.
public override string ToString()
Returns
- string
The diagnostic as text.