Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace NaughtyAttributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public class DisableIfAttribute : EnableIfAttributeBase
|
||||
{
|
||||
public DisableIfAttribute(string condition)
|
||||
: base(condition)
|
||||
{
|
||||
Inverted = true;
|
||||
}
|
||||
|
||||
public DisableIfAttribute(EConditionOperator conditionOperator, params string[] conditions)
|
||||
: base(conditionOperator, conditions)
|
||||
{
|
||||
Inverted = true;
|
||||
}
|
||||
|
||||
public DisableIfAttribute(string enumName, object enumValue)
|
||||
: base(enumName, enumValue as Enum)
|
||||
{
|
||||
Inverted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user