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);
        }