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

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

public static IsNotNullOrEmptyArrayInvoked ( string methodBody, string argumentName ) : bool
methodBody string
argumentName string
Результат bool
        public static bool IsNotNullOrEmptyArrayInvoked(string methodBody, string argumentName)
        {
            Argument.IsNotNullOrWhitespace(() => argumentName);

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