EscapeFilter() публичный статический Метод

public static EscapeFilter ( string filter ) : string
filter string
Результат string
Пример #1
0
        private void TracebackFilter_FilterChanging(object sender, FilterChangingEventArgs e)
        {
            if (e.Filter.Trim().Length == 0)
            {
                return;
            }

            var   filter = MainWindow.EscapeFilter(e.Filter);
            Regex regex;

            try {
                regex = new Regex(filter);
            } catch {
                e.SetValid(false);
                return;
            }

            foreach (var name in FunctionNames)
            {
                if (regex.IsMatch(name))
                {
                    e.SetValid(true);
                    return;
                }
            }

            e.SetValid(false);
        }