Skip to content

Class DecodeResult

Namespace: Apogee.Content.Xml
Assembly: Apogee.Content.dll

What made of an element: its data (with the defaults filled in, whatever the problems), and the problems.

public sealed record DecodeResult : IEquatable<DecodeResult>

Inheritance

object ← DecodeResult

Implements

IEquatable<DecodeResult>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

DecodeResult(DefValue, IReadOnlyList<SchemaProblem>, bool)

What made of an element: its data (with the defaults filled in, whatever the problems), and the problems.

public DecodeResult(DefValue Value, IReadOnlyList<SchemaProblem> Problems, bool Declared)

Parameters

Value DefValue

Problems IReadOnlyList<SchemaProblem>

Declared bool

False when the schemas have no element of that name: the value is the generic decoding and there are no problems to report.

Properties

Declared

False when the schemas have no element of that name: the value is the generic decoding and there are no problems to report.

public bool Declared { get; init; }

Property Value

bool

HasErrors

public bool HasErrors { get; }

Property Value

bool

Problems

public IReadOnlyList<SchemaProblem> Problems { get; init; }

Property Value

IReadOnlyList<SchemaProblem>

Value

public DefValue Value { get; init; }

Property Value

DefValue