namedpagecollection.cs
来自「完全网站系统」· CS 代码 · 共 63 行
CS
63 行
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 + =
减小字号Ctrl + -
显示快捷键?