Catel.Data.ModelBase.EnsureValidationIsUpToDate C# (CSharp) Méthode

EnsureValidationIsUpToDate() private méthode

Ensures the validation is up to date.
private EnsureValidationIsUpToDate ( bool constraint = true ) : void
constraint bool if set to true, the validation will be updated if not up to date.
Résultat void
        private void EnsureValidationIsUpToDate(bool constraint = true)
        {
            if (constraint && !IsValidated)
            {
                Validate();
            }
        }