示例#1
0
        internal static string ToSerializedValue(this TokenCharacterKind value)
        {
            switch (value)
            {
            case TokenCharacterKind.Letter:
                return("letter");

            case TokenCharacterKind.Digit:
                return("digit");

            case TokenCharacterKind.Whitespace:
                return("whitespace");

            case TokenCharacterKind.Punctuation:
                return("punctuation");

            case TokenCharacterKind.Symbol:
                return("symbol");
            }
            return(null);
        }
示例#2
0
 public static string ToSerialString(this TokenCharacterKind value) => value switch
 {