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

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

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

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