Table of Contents

Class UnifiedValidationResult

Namespace
DotCompute.Backends.Metal.Utilities
Assembly
DotCompute.Backends.Metal.dll

Represents the result of a validation operation.

public sealed class UnifiedValidationResult
Inheritance
UnifiedValidationResult
Inherited Members

Properties

ErrorCount

Gets the number of errors.

public int ErrorCount { get; }

Property Value

int

Errors

Gets all errors.

public IReadOnlyList<string> Errors { get; }

Property Value

IReadOnlyList<string>

Info

Gets all informational messages.

public IReadOnlyList<string> Info { get; }

Property Value

IReadOnlyList<string>

IsValid

Gets whether the validation passed (no errors).

public bool IsValid { get; }

Property Value

bool

WarningCount

Gets the number of warnings.

public int WarningCount { get; }

Property Value

int

Warnings

Gets all warnings.

public IReadOnlyList<string> Warnings { get; }

Property Value

IReadOnlyList<string>

Methods

AddError(string)

Adds an error message.

public void AddError(string message)

Parameters

message string

The error message.

AddInfo(string)

Adds an informational message.

public void AddInfo(string message)

Parameters

message string

The info message.

AddWarning(string)

Adds a warning message.

public void AddWarning(string message)

Parameters

message string

The warning message.

GenerateReport()

Generates a formatted report of the validation results.

public string GenerateReport()

Returns

string

A formatted validation report.

Merge(UnifiedValidationResult)

Merges another validation result into this one.

public void Merge(UnifiedValidationResult other)

Parameters

other UnifiedValidationResult

The validation result to merge.

ToString()

Returns a string representation of the validation result.

public override string ToString()

Returns

string