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

IsCloser() public static méthode

public static IsCloser ( char c, DelimitType dt ) : bool
c char
dt DelimitType
Résultat bool
        public static bool IsCloser(char c, DelimitType dt)
        {
            return
                (dt.HasFlag(DelimitType.Paranthesis) && c == ')') ||
                (dt.HasFlag(DelimitType.Bracket) && c == ']') ||
                (dt.HasFlag(DelimitType.Curly) && c == '}') ||
                (dt.HasFlag(DelimitType.Angled) && c == '>');
        }