using System; namespace NaughtyAttributes { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public class EnableIfAttribute : DrawerAttribute { public string ConditionName { get; private set; } public EnableIfAttribute(string conditionName) { this.ConditionName = conditionName; } } }