📄 rewriterrulecollection.cs
字号:
using System;
using System.Collections;
namespace Club.Common.URLRewriter.Config
{
/// <summary>
/// The RewriterRuleCollection models a set of RewriterRules in the Web.config file.
/// </summary>
/// <remarks>
/// The RewriterRuleCollection is expressed in XML as:
/// <code>
/// <RewriterRule>
/// <LookFor><i>pattern to search for</i></LookFor>
/// <SendTo><i>string to redirect to</i></LookFor>
/// <RewriterRule>
/// <RewriterRule>
/// <LookFor><i>pattern to search for</i></LookFor>
/// <SendTo><i>string to redirect to</i></LookFor>
/// <RewriterRule>
/// ...
/// <RewriterRule>
/// <LookFor><i>pattern to search for</i></LookFor>
/// <SendTo><i>string to redirect to</i></LookFor>
/// <RewriterRule>
/// </code>
/// </remarks>
[Serializable()]
public class RewriterRuleCollection : CollectionBase
{
/// <summary>
/// Adds a new RewriterRule to the collection.
/// </summary>
/// <param name="r">A RewriterRule instance.</param>
public virtual void Add(RewriterRule r)
{
this.InnerList.Add(r);
}
/// <summary>
/// Gets or sets a RewriterRule at a specified ordinal index.
/// </summary>
public RewriterRule this[int index]
{
get
{
return (RewriterRule) this.InnerList[index];
}
set
{
this.InnerList[index] = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -