rewriterrule.cs
来自「1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据」· CS 代码 · 共 56 行
CS
56 行
using System;
namespace Club.Common.URLRewriter.Config
{
/// <summary>
/// Represents a rewriter rule. A rewriter rule is composed of a pattern to search for and a string to replace
/// the pattern with (if matched).
/// </summary>
[Serializable()]
public class RewriterRule
{
// private member variables...
private string lookFor, sendTo;
#region Public Properties
/// <summary>
/// Gets or sets the pattern to look for.
/// </summary>
/// <remarks><b>LookFor</b> is a regular expression pattern. Therefore, you might need to escape
/// characters in the pattern that are reserved characters in regular expression syntax (., ?, ^, $, etc.).
/// <p />
/// The pattern is searched for using the <b>System.Text.RegularExpression.Regex</b> class's <b>IsMatch()</b>
/// method. The pattern is case insensitive.</remarks>
public string LookFor
{
get
{
return lookFor;
}
set
{
lookFor = value;
}
}
/// <summary>
/// The string to replace the pattern with, if found.
/// </summary>
/// <remarks>The replacement string may use grouping symbols, like $1, $2, etc. Specifically, the
/// <b>System.Text.RegularExpression.Regex</b> class's <b>Replace()</b> method is used to replace
/// the match in <see cref="LookFor"/> with the value in <b>SendTo</b>.</remarks>
public string SendTo
{
get
{
return sendTo;
}
set
{
sendTo = value;
}
}
#endregion
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?