示例#1
0
        /// <summary>
        /// Gets the forum thread nodes.
        /// </summary>
        /// <param name="forum">The forum.</param>
        /// <returns></returns>
        public ForumThreadNodeInfo[] GetForumThreadNodes(ForumInfo forum)
        {
            ArrayList list = new ArrayList();

            using (IDataReader reader = DBForum.GetForumThreadNodesByForumId(this.CurrentUserTimeZoneId, forum.Id))
            {
                while (reader.Read())
                {
                    list.Add(new ForumThreadNodeInfo(reader));
                }
            }
            return((ForumThreadNodeInfo[])list.ToArray(typeof(ForumThreadNodeInfo)));
        }