private protected override T Parse(string input) { if (EnumStringLookup <T> .TryParse(input, out var value)) { return(value); } throw new FormatException(ExceptionMessages.TextIsInvalidEnumValue); }
private protected override bool TryParse(string input, out T value) => EnumStringLookup <T> .TryParse(input, out value);