Catel.ReSharper.Arguments.ArgumentCheckStatementDetectionHelper.IsMatchInvoked C# (CSharp) 메소드

IsMatchInvoked() 공개 정적인 메소드

public static IsMatchInvoked ( string methodBody, string argumentName ) : bool
methodBody string
argumentName string
리턴 bool
        public static bool IsMatchInvoked(string methodBody, string argumentName)
        {
            Argument.IsNotNullOrWhitespace(() => argumentName);

            return Regex.IsMatch(methodBody, string.Format(ArgumentCheckStatementDetectionPatterns.IsMatch, argumentName), RegexOptions.IgnorePatternWhitespace) || Regex.IsMatch(methodBody, string.Format(ArgumentCheckStatementDetectionPatterns.IsMatch2, argumentName), RegexOptions.IgnorePatternWhitespace);
        }