コード例 #1
0
        /// <summary>
        /// Match the given criteria with the one defined on this target segment.
        /// </summary>
        /// <param name="criteriaValueToMatch">criteria value</param>
        /// <param name="criteriaToMatch">kind of criteria</param>
        /// <returns>true if the provided criteria matches the one defined on this target segment</returns>
        internal bool MatchCriteria(String criteriaValueToMatch, EpmSyndicationCriteria criteriaToMatch)
        {
            DebugUtils.CheckNoExternalCallers();

            if (criteriaValueToMatch != null)
            {
                return(this.CriteriaValue != null && criteriaValueToMatch.Equals(this.CriteriaValue, StringComparison.OrdinalIgnoreCase) && this.Criteria == criteriaToMatch);
            }

            return(this.CriteriaValue == null && criteriaToMatch == this.Criteria);
        }
コード例 #2
0
        /// <summary>
        /// Match the given criteria with the one defined on this target segment.
        /// </summary>
        /// <param name="criteriaValueToMatch">criteria value</param>
        /// <param name="criteriaToMatch">kind of criteria</param>
        /// <returns>true if the provided criteria matches the one defined on this target segment</returns>
        internal bool MatchCriteria(String criteriaValueToMatch, EpmSyndicationCriteria criteriaToMatch)
        {
            DebugUtils.CheckNoExternalCallers();

            if (criteriaValueToMatch != null)
            {
                return this.CriteriaValue != null && criteriaValueToMatch.Equals(this.CriteriaValue, StringComparison.OrdinalIgnoreCase) && this.Criteria == criteriaToMatch;
            }

            return this.CriteriaValue == null && criteriaToMatch == this.Criteria;
        }