abstractcondition.cs

来自「全功能c#编译器」· CS 代码 · 共 40 行

CS
40
字号
// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
//     <version value="$version"/>
// </file>

using System;
using System.Xml;

namespace ICSharpCode.Core.AddIns.Conditions
{
	/// <summary>
	/// This is a abstract implementation of the <see cref="ICondition"/> interface.
	/// </summary>
	public abstract class AbstractCondition : ICondition
	{
		[XmlMemberAttribute("action")]
		ConditionFailedAction action = ConditionFailedAction.Exclude;
		
		/// <summary>
		/// Returns the action, if the condition is failed.
		/// </summary>
		public ConditionFailedAction Action {
			get {
				return action;
			}
			set {
				action = value;
			}
		}
		
		/// <summary>
		/// Inheriting classes need to overwrite this method.
		/// </summary>
		/// <seealso cref="ICondition"/> interface.
		public abstract bool IsValid(object caller);
	}
}

⌨️ 快捷键说明

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