Пример #1
0
        public TreeDataRefNode(object parent, FieldOrProperty member, NodeAttributes attributes)
            : base(parent)
        {
            Name     = member.GetName();
            TypeName = member.GetMemberType().GetFriendlyName();

            ParentFieldEntry = member;

            if (!attributes.HasFlag(NodeAttributes.HideChildren))
            {
                Children = new List <TreeDataNode>();
                AddObjectChildren();
            }
        }