HeapProfiler.MainWindow.FilterToRegex C# (CSharp) 메소드

FilterToRegex() 공개 정적인 메소드

public static FilterToRegex ( string rawFilter, bool compiled = false ) : Regex
rawFilter string
compiled bool
리턴 System.Text.RegularExpressions.Regex
        public static Regex FilterToRegex(string rawFilter, bool compiled = false)
        {
            if (rawFilter == null)
                return null;

            var escaped = EscapeFilter(rawFilter);
            var options = RegexOptions.IgnoreCase;
            if (compiled)
                options |= RegexOptions.Compiled;

            return new Regex(escaped, options);
        }

Usage Example

예제 #1
0
        private void TracebackFilter_FilterChanged(object sender, EventArgs e)
        {
            var filter = MainWindow.FilterToRegex(TracebackFilter.Filter);

            DeltaHistogram.FunctionFilter = DeltaList.FunctionFilter = FunctionFilter = filter;
            Start(RefreshDeltas());
        }
All Usage Examples Of HeapProfiler.MainWindow::FilterToRegex
MainWindow