Skip to content

Izayoi.Data.Validation.DataValidator

IzayoiJiichan edited this page Sep 9, 2024 · 2 revisions

DataValidator

Definition

Namespace Izayoi.Data.Validation
Assembly Izayoi.Data.Validation.dll

Represents a data varidator.

public class DataValidator : IDataValidator

Inheritance

Object -> DataValidator

Constructors

Name Summary
DataValidator() Initializes an instance of the DataValidator class.

Methods

Name Returns Summary
TryValidateErrors(in object instance, out List<ValidationError> validationErrors) bool Attempts to validate the property values of the specified instance.
TryValidateErrorsRef(in object instance, ref List<ValidationError> validationErrors) bool Attempts to validate the property values of the specified instance.
TryValidateErrorsRef(in object instance, in bool breakOnFirstPropertyError, in bool breakOnPerFirstPropertyError, ref List<ValidationError> validationErrors) bool Attempts to validate the property values of the specified instance.
TryValidateResults(in object instance, out List<ValidationResult> validationResults) bool Attempts to validate the property values of the specified instance.
TryValidateResultsRef(in object instance, ref List<ValidationResult> validationResults) bool Attempts to validate the property values of the specified instance.
TryValidateResultsRef(in object instance, in bool breakOnFirstPropertyError, in bool breakOnPerFirstPropertyError, ref List<ValidationResult> validationResults) bool Attempts to validate the property values of the specified instance.
ValidateErrors(in object instance, in bool breakOnFirstPropertyError = false, in bool breakOnPerFirstPropertyError = false) List<ValidationError> Validates the property values of the specified instance.
ValidateResults(in object instance, in bool breakOnFirstPropertyError = false, in bool breakOnPerFirstPropertyError = false) List<ValidationResult> Validates the property values of the specified instance.

Remarks

Reuse a DataValidator object whenever possible.

Applies to

Product Versions
.NET 8
.NET Standard 2.0, 2.1