예제 #1
0
        /// <summary>
        /// Gets the forum thread nodes.
        /// </summary>
        /// <param name="ThreadId">The thread id.</param>
        /// <returns></returns>
        public ForumThreadNodeInfo[] GetForumThreadNodes(int ThreadId)
        {
            ArrayList list = new ArrayList();

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