Method TryParse
- Namespace
- MailFathom.Domain.Failures
- Assembly
- MailFathom.Domain.dll
TryParse(int, out MailFathomErrorCode)
Parses a recorded five-digit code back into the value it names.
public static bool TryParse(int value, out MailFathomErrorCode errorCode)
Parameters
valueintThe number read from a log, an alert, or a serialized error.
errorCodeMailFathomErrorCodeThe parsed code when the number is allocated; otherwise the unspecified default.
Returns
Remarks
An unallocated number is not accepted, so a code retired or mistyped is recognized as unknown rather than reconstructed as a value nothing raises.