ValidatePropertyValue method

void ValidatePropertyValue(
  1. PropertyDefinition propertyDefinition
)
Validates the property value. The property definition.

Implementation

/* private */
void ValidatePropertyValue(PropertyDefinition propertyDefinition) {
  OutParam<Object> propertyValueOutParam = new OutParam<Object>();
  if (this.TryGetProperty(propertyDefinition, propertyValueOutParam)) {
    Object? propertyValue = propertyValueOutParam.param;
    if (propertyValue is ISelfValidate) {
      propertyValue.Validate();
    }
  }
}