ExcludeFromEvaluationAttribute class

Namespace: CodeEffects.Rule.Attributes
Assemblies: CodeEffects.Rule.Editor.Asp.dll, CodeEffects.Rule.Editor.Mvc.dll, CodeEffects.Rule.Editor.Core.dll, CodeEffects.Rule.Editor.Net.dll

If applied to any member of the source object, notifies Rule Editor that this member should be ignored.

Syntax

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method,
	AllowMultiple = false)]
public class ExcludeFromEvaluationAttribute : System.Attribute

Example

using CodeEffects.Rule.Attributes;

namespace TestLibrary
{
	public class Thing
	{
		[ExcludeFromEvaluation]
	public int ID { get; set; }

	public string Name { get; set; }
	}
}

p101

l097 --

l102

p101

×