Exemple #1
0
        /// <summary>
        /// Returns the index at which the given member is stored, or -1 if it does not belong
        /// to this collection.
        /// </summary>
        /// <param name="member">The member whose index if to be found.</param>
        /// <returns>The index at which the given member is stored, or -1 if it does not belong
        /// to this collection.</returns>
        public int IndexOf(ISchemaEntry member)
        {
            if (IsDisposed)
            {
                throw new ObjectDisposedException(this.ToString());
            }
            if (member == null)
            {
                throw new ArgumentNullException("member", "Member cannot be null.");
            }

            return(_Members.IndexOf(member));
        }