Class ValidationReport
Everything one validate() pass found, in member order. Validation is linter-style — it never stops at the first finding, so a broken entity reports every violated contract at once. A report is ok() when it holds no errors; warnings mark states real client files ship.
public class ValidationReport : IDisposable
- Inheritance
-
ValidationReport
- Implements
- Inherited Members
Constructors
ValidationReport()
public ValidationReport()
ValidationReport(ValidationReport)
Copy-construct: a deep copy of other (the C++ copy constructor).
public ValidationReport(ValidationReport other)
Parameters
otherValidationReport
Properties
ErrorCount
The number of error-severity findings.
public ulong ErrorCount { get; }
Property Value
Issues
Every finding, in the order the walk recorded them.
public Vector<ValidationIssue> Issues { get; }
Property Value
Ok
Whether the entity is fit to write: no error-severity findings (warnings do not fail a report).
public bool Ok { get; }
Property Value
Size
The total finding count (errors and warnings).
public ulong Size { get; }
Property Value
Truncated
Whether findings were dropped because the report hit its size cap.
public bool Truncated { get; }
Property Value
WarningCount
The number of warning-severity findings.
public ulong WarningCount { get; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(ValidationReport?, ValidationReport?)
public static bool operator ==(ValidationReport? l, ValidationReport? r)
Parameters
Returns
operator !=(ValidationReport?, ValidationReport?)
public static bool operator !=(ValidationReport? l, ValidationReport? r)