Parses a string to create an instance of . Derived classes can override this to change how interprets incoming values.

protected abstract bool TryParseValueFromString(string value, TValue result, string validationErrorMessage)
Returns:
bool

Parameters

value string

The string value to be parsed.

result TValue

An instance of .

validationErrorMessage string

If the value could not be parsed, provides a validation error message.

In this article