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