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);
        }