You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
601 B
26 lines
601 B
using System; |
|
|
|
namespace NaughtyAttributes |
|
{ |
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] |
|
public class ShowIfAttribute : ShowIfAttributeBase |
|
{ |
|
public ShowIfAttribute(string condition) |
|
: base(condition) |
|
{ |
|
Inverted = false; |
|
} |
|
|
|
public ShowIfAttribute(EConditionOperator conditionOperator, params string[] conditions) |
|
: base(conditionOperator, conditions) |
|
{ |
|
Inverted = false; |
|
} |
|
|
|
public ShowIfAttribute(string enumName, object enumValue) |
|
: base(enumName, enumValue as Enum) |
|
{ |
|
Inverted = false; |
|
} |
|
} |
|
}
|
|
|