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

IsOpener() public static méthode

public static IsOpener ( char c, DelimitType dt ) : bool
c char
dt DelimitType
Résultat bool
        public static bool IsOpener(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 == '<');
        }