Struct Diagnostic
Describes a problem in markup text, or a reason an edit couldn't be made.
public readonly record struct Diagnostic : IEquatable<Diagnostic>
- Implements
- Inherited Members
- Extension Methods
Constructors
Diagnostic(TextSpan, string)
Describes a problem in markup text, or a reason an edit couldn't be made.
public Diagnostic(TextSpan Span, string Message)
Parameters
SpanTextSpanThe range of text the problem is about.
MessagestringA human-readable description of the problem.
Properties
Message
A human-readable description of the problem.
public string Message { get; init; }
Property Value
Span
The range of text the problem is about.
public TextSpan Span { get; init; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.