Table of Contents

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

Kind FormXamlDiagnosticKind

What is reported.

Severity FormXamlSeverity

How much the reported thing costs the read.

Line int

The 1-based line of the document it is about, or 0 where the document has none, such as an empty one.

Message string

The report, in the current UI culture.

Properties

Kind

What is reported.

public FormXamlDiagnosticKind Kind { get; init; }

Property Value

FormXamlDiagnosticKind

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

int

Message

The report, in the current UI culture.

public string Message { get; init; }

Property Value

string

Severity

How much the reported thing costs the read.

public FormXamlSeverity Severity { get; init; }

Property Value

FormXamlSeverity

Methods

ToString()

The line, the severity and the message.

public override string ToString()

Returns

string

The diagnostic as text.