Version 3.3.1.2

ValidationResult class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public sealed class ValidationResult : ICollection<ResultItem>, IEnumerable<ResultItem>, IEnumerable
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 ResultItem Add(ResultItem item)
Parameters
ResultItem item

Returns
ResultItem

Add(ValidatorSeverity, String)
public ResultItem Add(ValidatorSeverity severity, string message)
Parameters
ValidatorSeverity severity

System.String message

Returns
ResultItem

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

Returns
ResultItem

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

Returns
ResultItem

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

Extension Methods