Ancestry.Daisy.Statements.ReflectionStatementDefinition.GetMatchingCriteria C# (CSharp) Method

GetMatchingCriteria() public method

public GetMatchingCriteria ( ) : Regex
return System.Text.RegularExpressions.Regex
        public Regex GetMatchingCriteria()
        {
            var attr = MethodInfo
                .GetCustomAttributes<MatchesAttribute>()
                .FirstOrDefault();
            return attr.With(x => x.RegularExpression).Recover(() => MethodNameToRegex(MethodInfo.Name));
        }