Class Severity
Implements
Inherited Members
Namespace: ZhEaIsNsAaBn.Utilities
Assembly: ZhEaIsNsAaBn.LayerResponse.dll
Syntax
[JsonConverter(typeof(Severity.SeverityJsonConverter))]
public sealed record Severity : IEquatable<Severity>
Remarks
JSON: a plain string, e.g. "High" — not {"Value":"High"} (the default for a
single-property record). Unknown writes as "Unknown" and reads back from
"Unknown" or ""; its in-memory Value stays an empty string.
Fields
High
Serious; needs attention.
Declaration
public static readonly Severity High
Field Value
| Type | Description |
|---|---|
| Severity |
Low
Minor.
Declaration
public static readonly Severity Low
Field Value
| Type | Description |
|---|---|
| Severity |
Medium
Normal; the default for new errors.
Declaration
public static readonly Severity Medium
Field Value
| Type | Description |
|---|---|
| Severity |
Unknown
Not set. Value is an empty string.
Declaration
public static readonly Severity Unknown
Field Value
| Type | Description |
|---|---|
| Severity |
Properties
Value
The severity name: High, Medium, Low, or empty for Unknown.
Declaration
public string Value { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Deconstruct(out string)
Gets the severity name.
Declaration
public void Deconstruct(out string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Receives Value. |