Esempio n. 1
0
        /// <summary>
        /// Returns whether the given member is in this collection.
        /// </summary>
        /// <param name="member">The member to validate.</param>
        /// <returns>True if the given member is part of this collection, or false otherwise.</returns>
        public bool Contains(ISchemaEntry member)
        {
            if (IsDisposed)
            {
                throw new ObjectDisposedException(this.ToString());
            }
            if (member == null)
            {
                throw new ArgumentNullException("Member cannot be null.");
            }

            return(_Members.Contains(member));
        }