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

IsOfTypeInvoked() public static method

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

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