PropertySearcherItem CreateSearcherItem(string path, MemberInfoValue member, int hashCode,
                                                List <SearcherItem> childItems)
        {
            var childItem = new PropertySearcherItem(member, path, hashCode, children: childItems);

            childItem.Enabled = m_ExistingMembers.Contains(childItem.GetHashCode());

            return(childItem);
        }
        static List <string> BuildMemberPath(PropertySearcherItem propertySearcherItem)
        {
            List <string> memberPath;

            if (propertySearcherItem.Parent != null)
            {
                memberPath = BuildMemberPath(propertySearcherItem.Parent as PropertySearcherItem);
            }
            else
            {
                memberPath = new List <string>();
            }

            memberPath.Add(propertySearcherItem.Name);

            return(memberPath);
        }
        void OnSelectionToggle(PropertyElement element)
        {
            PropertySearcherItem boundSearchItem = element.Item;

            EditModel(element.Toggle.value, boundSearchItem);
        }