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

📄 namedpagecollection.cs

📁 一个ASP.NET下的中文内容管理和社区系统
💻 CS
字号:
namespace ASPNET.StarterKit.Communities {
    
    using System;
    using System.Collections;
    using System.Collections.Specialized;


    //*********************************************************************
    //
    // NamedPageCollection Class
    //
    // Represents a collection of PageInfo objects representing named
    // pages. 
    //
    //*********************************************************************

    
    public class NamedPageCollection : Hashtable {


        //*********************************************************************
        //
        // Add Method
        //
        // Adds a new PageInfo object to the collection. 
        //
        //*********************************************************************

        override public void Add(Object key, Object value) {
                base[key] = value;
        }



        //*********************************************************************
        //
        // this Indexer
        //
        // Returns a PageInfo object. 
        //
        //*********************************************************************

        public PageInfo this[string key] {
            get {
                return (PageInfo)base[key];
            }
        }
 
 

        //*********************************************************************
        //
        // NamedPageCollection Constructor
        //
        // Initializes the Hashtable as case-insensitive. 
        //
        //*********************************************************************
      
        public NamedPageCollection() : base(new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer() ) {}
        
    }
}

⌨️ 快捷键说明

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