System.Delimiter.IsCloser C# (CSharp) Method

IsCloser() public static method

public static IsCloser ( char c, DelimitType dt ) : bool
c char
dt DelimitType
return 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 == '>');
        }