abstractreflectionrule.cs

来自「c#源代码」· CS 代码 · 共 42 行

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

using System;

namespace ICSharpCode.AssemblyAnalyser.Rules
{
	/// <summary>
	/// Description of AbstractReflectionRule.	
	/// </summary>
	public abstract class AbstractReflectionRule : AbstractRule, ICSharpCode.AssemblyAnalyser.Rules.IReflectionRule
	{
		protected ProtectionLevels memberProtectionLevel     = ProtectionLevels.All;
		protected ProtectionLevels nestedTypeProtectionLevel = ProtectionLevels.All;
		protected ProtectionLevels typeProtectionLevel       = ProtectionLevels.All;
		
		#region ICSharpCode.AssemblyAnalyser.Rules.IReflectionRule interface implementation
		public virtual ProtectionLevels MemberProtectionLevel {
			get {
				return memberProtectionLevel;
			}
		}
		
		public virtual ProtectionLevels NestedTypeProtectionLevel {
			get {
				return nestedTypeProtectionLevel;
			}
		}
		
		public virtual ProtectionLevels TypeProtectionLevel {
			get {
				return typeProtectionLevel;
			}
		}
		#endregion
	}
}

⌨️ 快捷键说明

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