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
Errors
Gets all errors.
public IReadOnlyList<string> Errors { get; }
Property Value
Info
Gets all informational messages.
public IReadOnlyList<string> Info { get; }
Property Value
IsValid
Gets whether the validation passed (no errors).
public bool IsValid { get; }
Property Value
WarningCount
Gets the number of warnings.
public int WarningCount { get; }
Property Value
Warnings
Gets all warnings.
public IReadOnlyList<string> Warnings { get; }
Property Value
Methods
AddError(string)
Adds an error message.
public void AddError(string message)
Parameters
messagestringThe error message.
AddInfo(string)
Adds an informational message.
public void AddInfo(string message)
Parameters
messagestringThe info message.
AddWarning(string)
Adds a warning message.
public void AddWarning(string message)
Parameters
messagestringThe 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
otherUnifiedValidationResultThe validation result to merge.
ToString()
Returns a string representation of the validation result.
public override string ToString()