postcollection.cs

来自「微软的.NET论坛的源代码(COOL!!!)」· CS 代码 · 共 36 行

CS
36
字号
using System;
using System.Collections;

namespace AspNetForums.Components {

    // *********************************************************************
    //
    //  PostCollection
    //
    /// <summary>
    /// Summary description for PostCollection.
    /// </summary>
    //
    // ********************************************************************/    
    public class PostCollection : ArrayList {
        // member variables
        int _totalRecordCount;
		
        // default constructor
        public PostCollection() : base() {}

        public PostCollection(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 + =
减小字号Ctrl + -
显示快捷键?