Пример #1
0
        /// <summary>
        /// 添加子节点
        /// </summary>
        /// <param name="uNodeId"></param>
        /// <param name="sysObj"></param>
        /// <returns></returns>
        public bool AddChild(UInt32 uNodeId, System.Object sysObj)
        {
            if (m_Children.ContainKey(uNodeId) == true)
            {
                return(false);
            }
            if (m_Children == null)
            {
                m_Children = new QuickList <UInt32, CTreeNode>();
            }

            CTreeNode newNode = new CTreeNode(uNodeId, sysObj);
            bool      bAdd    = AttachChild(newNode);

            return(bAdd);
        }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public CMemberReflector()
 {
     m_MethodInfoList   = new QuickList <string, MethodInfo>();
     m_PropertyInfoList = new QuickList <string, PropertyInfo>();
 }