Esempio n. 1
0
        /// <summary>
        /// Return a sorted list of the file
        /// </summary>
        /// <returns></returns>
        internal MemberList GetSortedMembersList()
        {
            MemberList items = new MemberList();

            items.Add(Members);
            items.Sort();
            return(items);
        }
Esempio n. 2
0
        /// <summary>
        /// Merge one item into the list
        /// </summary>
        /// <param name="item">Item to merge</param>
        public void Merge(MemberModel item)
        {
            if (item == null)
            {
                return;
            }
            MemberList list = new MemberList();

            list.Add(item);
            Merge(list);
        }
Esempio n. 3
0
        internal MemberList GetSortedMembersList()
        {
            MemberList items = new MemberList();

            foreach (MemberModel item in Members)
            {
                if ((item.Flags & FlagType.Constructor) == 0)
                {
                    items.Add(item);
                }
            }
            items.Sort();
            return(items);
        }
Esempio n. 4
0
        /// <summary>
        /// Return all MemberModel instance matches in the MemberList
        /// </summary>
        /// <param name="name">Member name to match</param>
        /// <param name="mask">Flags mask</param>
        /// <param name="acc">Visibility mask</param>
        /// <returns>All matches</returns>
        public MemberList MultipleSearch(string name, FlagType mask, Visibility acc)
        {
            MemberList result = new MemberList();

            foreach (MemberModel m in items)
            {
                if (((m.Flags & mask) == mask) &&
                    (acc == 0 || (m.Access & acc) > 0) &&
                    m.Name == name)
                {
                    result.Add(m);
                }
            }
            return(result);
        }