Class EnableIfAttributeBase
Inheritance
object
System.Attribute
EnableIfAttributeBase
Implements
Inherited Members
System.Attribute.Equals(object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, bool)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, bool)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.Match(object)
System.Attribute.TypeId
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NaughtyAttributes
Assembly: NaughtyAttributes.Core.dll
Syntax
public abstract class EnableIfAttributeBase : MetaAttribute, INaughtyAttribute
Constructors
EnableIfAttributeBase(EConditionOperator, params string[])
Declaration
public EnableIfAttributeBase(EConditionOperator conditionOperator, params string[] conditions)
Parameters
Type | Name | Description |
---|---|---|
EConditionOperator | conditionOperator | |
string[] | conditions |
EnableIfAttributeBase(string, Enum)
Declaration
public EnableIfAttributeBase(string enumName, Enum enumValue)
Parameters
Type | Name | Description |
---|---|---|
string | enumName | |
System.Enum | enumValue |
EnableIfAttributeBase(string)
Declaration
public EnableIfAttributeBase(string condition)
Parameters
Type | Name | Description |
---|---|---|
string | condition |
Properties
ConditionOperator
Declaration
public EConditionOperator ConditionOperator { get; }
Property Value
Type | Description |
---|---|
EConditionOperator |
Conditions
Declaration
public string[] Conditions { get; }
Property Value
Type | Description |
---|---|
string[] |
EnumValue
If this not null, Conditions[0] is name of an enum variable.
Declaration
public Enum EnumValue { get; }
Property Value
Type | Description |
---|---|
System.Enum |
Inverted
Declaration
public bool Inverted { get; protected set; }
Property Value
Type | Description |
---|---|
bool |