예제 #1
0
        private protected override T Parse(string input)
        {
            if (EnumStringLookup <T> .TryParse(input, out var value))
            {
                return(value);
            }

            throw new FormatException(ExceptionMessages.TextIsInvalidEnumValue);
        }
예제 #2
0
 private protected override bool TryParse(string input, out T value) => EnumStringLookup <T> .TryParse(input, out value);