Catel.ReSharper.Arguments.ArgumentCheckStatementDetectionHelper.IsNotOutOfRangeInvoked C# (CSharp) Method

IsNotOutOfRangeInvoked() public static method

public static IsNotOutOfRangeInvoked ( string methodBody, string argumentName ) : bool
methodBody string
argumentName string
return bool
        public static bool IsNotOutOfRangeInvoked(string methodBody, string argumentName)
        {
            Argument.IsNotNullOrWhitespace(() => argumentName);

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