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

📄 filter.cs

📁 C#编写的网络爬虫程序 效率很高 很好用!
💻 CS
字号:
using System;
using System.Collections;

namespace NUnit.Core
{
	/// <summary>
	/// Summary description for Filter.
	/// </summary>
	public interface IFilter
	{
		bool Pass(TestSuite suite);

		bool Pass(TestCase test); 
	}

	[Serializable]
	public abstract class Filter : IFilter
	{
		private bool exclude;

		public Filter() : this( false ) { }

		public Filter( bool exclude )
		{
			this.exclude = exclude;
		}

		public bool Exclude
		{
			get { return exclude; }
			set { exclude = value; }
		}

		public void Negate()
		{
			exclude = !exclude;
		}

		#region IFilter Members

		public abstract bool Pass(TestSuite suite);

		public abstract bool Pass(TestCase test);

		#endregion
	}
}

⌨️ 快捷键说明

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