ExcludeFromEvaluationAttribute Class
Assembly: CodeEffects.Rule.Common.dll
Namespace: CodeEffects.Rule.Common.Attributes
Summary
When applied to a member of the source object, this attribute instructs Rule Editor to ignore that member. The attribute can be applied to a public property, field or method, and to a member of an enumeration (see the example in EnumItemAttribute).
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false)]
public class ExcludeFromEvaluationAttribute : System.Attribute
Constructors
Example
using CodeEffects.Rule.Common.Attributes;
namespace TestLibrary
{
public class Thing
{
[ExcludeFromEvaluation]
public int ID { get; set; }
public string Name { get; set; }
}
}