System.Delimiter.GetDType C# (CSharp) Méthode

GetDType() public static méthode

public static GetDType ( char c ) : DelimitType
c char
Résultat DelimitType
        public static DelimitType GetDType(char c)
        {
            switch(c) {
                case '(':
                case ')':
                    return DelimitType.Paranthesis;
                case '[':
                case ']':
                    return DelimitType.Bracket;
                case '{':
                case '}':
                    return DelimitType.Curly;
                case '<':
                case '>':
                    return DelimitType.Angled;
                default:
                    return DelimitType.None;
            }
        }