2using System.Reflection;
3using System.Text.RegularExpressions;
12 private readonly Regex regex;
33 if (IsMatch(this.regex, Frame.
TypeName +
"." + Frame.
Method.Name) ||
34 IsMatch(this.regex, Frame.
TypeName) ||
41 while (!(T is
null) && T.Attributes.HasFlag(TypeAttributes.NestedPrivate))
45 if (IsMatch(this.regex, T.FullName +
"." + Frame.
Method.Name) ||
46 IsMatch(this.regex, T.FullName))
55 internal static bool IsMatch(Regex Regex,
string s)
57 Match M = Regex.Match(s);
58 return M.Success && M.Index == 0 && M.Length == s.Length;
Checks for approved sources in the call stack using a regular expression.
override? bool Check(FrameInformation Frame)
Performs a check of a stack frame.
ApproveRegex(Regex Regex)
Checks for approved sources in the call stack using a regular expression.
Abstract base class for call stack checks.