Catel.ReSharper.Arguments.ArgumentCheckStatementDetectionHelper.IsOfTypeInvoked C# (CSharp) Метод

IsOfTypeInvoked() публичный статический Метод

public static IsOfTypeInvoked ( string methodBody, string argumentName ) : bool
methodBody string
argumentName string
Результат 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);
        }