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

IsNotMatchInvoked() 공개 정적인 메소드

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

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