Table of Contents

Class SchemaCompatibilityResult

Namespace
AnyProtocol.Abstraction
Assembly
AnyProtocol.Abstraction.dll

Reports whether a candidate schema satisfies one compatibility mode.

public sealed record SchemaCompatibilityResult : IEquatable<SchemaCompatibilityResult>
Inheritance
SchemaCompatibilityResult
Implements
Inherited Members

Constructors

SchemaCompatibilityResult(bool, IReadOnlyList<string>)

Reports whether a candidate schema satisfies one compatibility mode.

public SchemaCompatibilityResult(bool IsCompatible, IReadOnlyList<string> Errors)

Parameters

IsCompatible bool

Whether the candidate is compatible.

Errors IReadOnlyList<string>

Actionable incompatibility descriptions.

Properties

Compatible

Creates a successful compatibility result.

public static SchemaCompatibilityResult Compatible { get; }

Property Value

SchemaCompatibilityResult

Errors

Actionable incompatibility descriptions.

public IReadOnlyList<string> Errors { get; init; }

Property Value

IReadOnlyList<string>

IsCompatible

Whether the candidate is compatible.

public bool IsCompatible { get; init; }

Property Value

bool

Methods

Deconstruct(out bool, out IReadOnlyList<string>)

public void Deconstruct(out bool IsCompatible, out IReadOnlyList<string> Errors)

Parameters

IsCompatible bool
Errors IReadOnlyList<string>

Equals(SchemaCompatibilityResult?)

public bool Equals(SchemaCompatibilityResult? other)

Parameters

other SchemaCompatibilityResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SchemaCompatibilityResult?, SchemaCompatibilityResult?)

public static bool operator ==(SchemaCompatibilityResult? left, SchemaCompatibilityResult? right)

Parameters

left SchemaCompatibilityResult
right SchemaCompatibilityResult

Returns

bool

operator !=(SchemaCompatibilityResult?, SchemaCompatibilityResult?)

public static bool operator !=(SchemaCompatibilityResult? left, SchemaCompatibilityResult? right)

Parameters

left SchemaCompatibilityResult
right SchemaCompatibilityResult

Returns

bool