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

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

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

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