/// <summary> /// Gets the status by testing the supplied value. /// </summary> /// <returns>The status of the supplied value.</returns> /// <param name="provider">Object on which the field exists.</param> /// <param name="testValue">Test value.</param> private ValidationStatus GetStatus(Object provider, IValidatable testValue) { return(this.Attribute.ValidationMethod == null? testValue.GetValidationStatus(out m_CurrentStatusTooltip) : this.Attribute.ValidationMethod(provider, testValue, out m_CurrentStatusTooltip)); }