Table of Contents

Class ValidationIssue

Namespace
WoWLib.Formats
Assembly
WoWLib.dll

One validate() finding: where it is, how bad it is, and what is wrong.

public class ValidationIssue : IDisposable
Inheritance
ValidationIssue
Implements
Inherited Members

Constructors

ValidationIssue()

public ValidationIssue()

ValidationIssue(ValidationIssue)

Copy-construct: a deep copy of other (the C++ copy constructor).

public ValidationIssue(ValidationIssue other)

Parameters

other ValidationIssue

ValidationIssue(ValidationSeverity, string, string)

public ValidationIssue(ValidationSeverity severity, string path, string message)

Parameters

severity ValidationSeverity
path string
message string

Properties

Message

What is wrong, with the numbers involved.

public string Message { get; set; }

Property Value

string

Path

Member path from the validated entity, e.g. "groups[3].body.indices".

public string Path { get; set; }

Property Value

string

Severity

Whether the client would misread the file (error) or merely find it unusual (warning).

public ValidationSeverity Severity { get; set; }

Property Value

ValidationSeverity

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(ValidationIssue?, ValidationIssue?)

public static bool operator ==(ValidationIssue? l, ValidationIssue? r)

Parameters

l ValidationIssue
r ValidationIssue

Returns

bool

operator !=(ValidationIssue?, ValidationIssue?)

public static bool operator !=(ValidationIssue? l, ValidationIssue? r)

Parameters

l ValidationIssue
r ValidationIssue

Returns

bool