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

📄 rewriterrule.cs

📁 1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据库dooogo。 2、然后打开web.config修改 <DbProvider type="Club.Fram
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -