⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadcollection.cs

📁 微软的.NET论坛的源代码(COOL!!!)
💻 CS
字号:
using System;
using System.Collections;

namespace AspNetForums.Components {

    // *********************************************************************
    //
    //  ThreadCollection
    //
    /// <summary>
    /// A collection of threads, i.e. top level posts
    /// </summary>
    //
    // ********************************************************************/    
    public class ThreadCollection : ArrayList {
        // member variables
        int _totalRecordCount;
		
        // default constructor
        public ThreadCollection() : base() {}

        public ThreadCollection(ICollection c) : base(c) {}


        public int TotalRecordCount {
            get { return _totalRecordCount; }
            set {
                if (value < 0)
                    _totalRecordCount = 0;
                else
                    _totalRecordCount = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -