Class Mprn
Provides validation for MPRN identifiers.
public static class Mprn
- Inheritance
-
Mprn
- Inherited Members
Methods
TryValidate(ReadOnlySpan<char>, out ValidationResult<MprnValue>)
Attempts to validate the supplied input as an MPRN.
public static bool TryValidate(ReadOnlySpan<char> input, out ValidationResult<MprnValue> result)
Parameters
inputReadOnlySpan<char>Candidate identifier to validate.
resultValidationResult<MprnValue>The validation outcome including the parsed value when valid.
Returns
- bool
trueif validation succeeded; otherwise,false.