Version 3.1.7.0

ValidationResult class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public sealed class ValidationResult
Inheritance
  • System.Object
  • ValidationResult

Constructors

ValidationResult()
public ValidationResult()

Fields

Path
public string Path
Setup
public ValidationSetup Setup
ValidationTimeMS
public double ValidationTimeMS

Properties

Count
public int Count { get; }
Item[Int32]
public ResultItem this[int index] { get; }
Parameters
System.Int32 index

Message
public string Message { get; }
ResultType
public ValidationResultType ResultType { get; }

Methods

Add(ResultItem)
public void Add(ResultItem item)
Parameters
ResultItem item

AddError(String)
public void AddError(string error)
Parameters
System.String error

AddError(String, Fix)
public void AddError(string error, Fix fix)
Parameters
System.String error

Fix fix

AddError(String, Fix, Validator.MetaData)
public void AddError(string error, Fix fix, Validator.MetaData metadata)
Parameters
System.String error

Fix fix

Validator.MetaData metadata

AddError(String, Validator.MetaData)
public void AddError(string error, Validator.MetaData metadata)
Parameters
System.String error

Validator.MetaData metadata

AddWarning(String)
public void AddWarning(string warning)
Parameters
System.String warning

AddWarning(String, Fix)
public void AddWarning(string warning, Fix fix)
Parameters
System.String warning

Fix fix

AddWarning(String, Fix, Validator.MetaData)
public void AddWarning(string warning, Fix fix, Validator.MetaData metadata)
Parameters
System.String warning

Fix fix

Validator.MetaData metadata

AddWarning(String, Validator.MetaData)
public void AddWarning(string warning, Validator.MetaData metadata)
Parameters
System.String warning

Validator.MetaData metadata

CreateCopy()
public ValidationResult CreateCopy()
Explode(ref List<ValidationResult>, Double)
public void Explode(ref List<ValidationResult> results, double validationTimeMS = 0)
Parameters
System.Collections.Generic.List<ValidationResult> results

System.Double validationTimeMS

FirstItemExists()
public bool FirstItemExists()
Returns
System.Boolean

IsMatch(ValidationResult)
public bool IsMatch(ValidationResult other)
Parameters
ValidationResult other

Returns
System.Boolean