Exemplo n.º 1
0
        public bool Contains(ReferenceTypeFilter item)
        {
            if (item == null || _listTypes.Count == 0)
            {
                return(false);
            }

            return(_listTypes.Contains(item));
        }
Exemplo n.º 2
0
        public bool Contains(ReferenceItem item)
        {
            if (item == null || _listItems.Count == 0)
            {
                return(false);
            }

            return(_listItems.Contains(item));
        }
        public bool ContainsLinkSource(ReferenceLinkSource linkSource)
        {
            if (linkSource == null || _topicLinks == null ||
                _topicLinks.Count == 0)
            {
                return(false);
            }

            return(_topicLinks.Contains(linkSource));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Determines whether the specified item is in the list of items.
        /// </summary>
        /// <param name="item">The item to locate in the list.</param>
        /// <returns>
        /// This returns <see langword="true"/> if the specified item is
        /// found in the list; otherwise, it is <see langword="false"/>.
        /// </returns>
        /// <exception cref="item">
        /// If the <paramref name="ArgumentNullException"/> is <see langword="null"/>.
        /// </exception>
        public bool Contains(ReferenceVsNetItem item)
        {
            BuildExceptions.NotNull(item, "item");

            return(_listItems.Contains(item));
        }